限制站点区域

master
lion 9 months ago
parent 68173cd827
commit 31f25dc49d

@ -41,7 +41,8 @@
</picker>
</view>
<view style="margin-top:16rpx;">
<u-input v-model="form.address" placeholder="请输入详细地址" />
<u-input v-model="form.address" placeholder="请输入详细地址" type="textarea"/>
<view style="color:blue" @click="openMap"></view>
</view>
</u-form-item>
<u-form-item label="备注" prop="remark">
@ -172,6 +173,30 @@
const res = await this.$u.api.userArchiveArea({ level: 1 });
this.provinceList = res.data;
},
//
openMap(){
console.log("chooseLocation")
let that = this
uni.chooseLocation({
success(res){
console.log("chooseLocationres",res)
if (res.errMsg === 'chooseLocation:ok') {
that.form.address = res.address
console.log('位置名称:' + res.name);
console.log('详细地址:' + res.address);
console.log('纬度:' + res.latitude);
console.log('经度:' + res.longitude);
}
},
fail(err){
uni.showToast({
title:'打开地图失败',
icon:'none'
})
console.log("err",err)
}
});
},
save() {
this.$refs.uForm1.validate(valid => {

@ -54,7 +54,21 @@
"setting" : {
"urlCheck" : false
},
"usingComponents" : true
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "需要获取您的定位"
},
"scope.chooseLocation" : {
"desc" : "需要获取您的详细地址"
}
},
"requiredPrivateInfos" : [ "getLocation", "chooseAddress","chooseLocation" ],
"optimization" : {
"subPackages" : true
},
"__usePrivacyCheck__" : true,
"lazyCodeLoading" : "requiredComponents"
},
"mp-alipay" : {
"usingComponents" : true

@ -29,7 +29,7 @@
<view class="info-item" v-if="orderInfo.type === 2">
<text class="label">服务地址</text>
<text class="value">{{item.city?item.city:'' }}</text>
<text class="value">{{orderInfo.city?orderInfo.city:'' }}</text>
</view>
<view class="info-item" v-else>
<text class="label">就诊医院</text>
@ -520,12 +520,14 @@
.label {
color: #666;
font-size: 28rpx;
width:180rpx;
}
.value {
color: #333;
font-size: 28rpx;
width:calc(100% - 190rpx);
text-align: right;
// &.price {
// color: #f56c6c;
// font-weight: bold;

File diff suppressed because it is too large Load Diff

@ -71,6 +71,7 @@
</u-form-item>
<u-form-item label="详细地址" prop="city" v-if="form.type == 2">
<u-input v-model="form.city" placeholder="请填写详细地址" />
<view style="text-align: right;color:blue" @click="openMap"></view>
</u-form-item>
<u-form-item label="预约人" prop="appoint_name" required>
<u-input v-model="form.appoint_name" placeholder="请填写预约人" />
@ -528,7 +529,30 @@
}
},
//
openMap(){
console.log("chooseLocation")
let that = this
uni.chooseLocation({
success(res){
console.log("chooseLocationres",res)
if (res.errMsg === 'chooseLocation:ok') {
that.form.city = res.address
console.log('位置名称:' + res.name);
console.log('详细地址:' + res.address);
console.log('纬度:' + res.latitude);
console.log('经度:' + res.longitude);
}
},
fail(err){
uni.showToast({
title:'打开地图失败',
icon:'none'
})
console.log("err",err)
}
});
},
pay() {
this.$refs.uForm.validate(async (valid) => {
if (valid) {

@ -94,12 +94,59 @@
},
onLoad(options) {
this.select.type = options.type ? options.type : ''
this.select.site_id = this.vuex_site?this.vuex_site.id:''
this.site_name = this.vuex_site?this.vuex_site.name:'全部'
this.getSiteList()
this.getList()
// this.select.site_id = this.vuex_site?this.vuex_site.id:''
// this.site_name = this.vuex_site?this.vuex_site.name:''
// this.getSiteList()
this.getUserInfo()
// this.getList()
},
methods: {
//
async getUserInfo(){
//
const loginRole = uni.getStorageSync('login_role')
//
let userApi = null
switch(loginRole) {
case 'nurse':
userApi = this.$u.api.getUser //
break
case 'staff':
userApi = this.$u.api.getStaffUser //
break
case 'operator':
userApi = this.$u.api.getOperatorUser //
break
default:
uni.showToast({
title: '无效的角色信息',
icon: 'none'
})
return
}
try {
const user = await userApi()
this.$u.vuex('vuex_user', user)
this.list_site = user.site
if(user.site.length<1){
uni.showToast({
title: '您还未绑定授权区域,请联系管理员绑定',
icon: 'none'
})
return
}
this.select.site_id = this.list_site[0].id
this.site_name = this.list_site[0].name
this.getList()
} catch (err) {
console.error("获取用户信息失败", err)
uni.showToast({
title: '获取用户信息失败',
icon: 'none'
})
}
},
async getSiteList() {
const res = await this.$u.api.otherSite()
this.list_site.push(...res)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"version":3,"sources":["uni-app:///common/const.js"],"names":["statusList","id","name"],"mappings":"+LAIA,IAAMA,EAAa,CAAC,CACnBC,GAAI,EACJC,KAAM,OACJ,CACFD,GAAI,EACJC,KAAM,SACJ,CACFD,GAAI,EACJC,KAAM,SACJ,CACFD,GAAI,EACJC,KAAM,QACJ,CACFD,GAAI,EACJC,KAAM,UACL","file":"package_sub/common/vendor.js","sourcesContent":["/*\r\n * 公用变量\r\n *\r\n */\r\nconst statusList = [{\r\n\tid: 0,\r\n\tname: '待处理'\r\n}, {\r\n\tid: 1,\r\n\tname: '已到客户家'\r\n}, {\r\n\tid: 2,\r\n\tname: '已接到客户'\r\n}, {\r\n\tid: 3,\r\n\tname: '已到医院'\r\n}, {\r\n\tid: 4,\r\n\tname: '已完成诊疗'\r\n}]\r\nexport {\r\n\tstatusList\r\n}"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -63,5 +63,20 @@
]
},
"preloadRule": {},
"permission": {
"scope.userLocation": {
"desc": "需要获取您的定位"
},
"scope.chooseLocation": {
"desc": "需要获取您的详细地址"
}
},
"requiredPrivateInfos": [
"getLocation",
"chooseAddress",
"chooseLocation"
],
"__usePrivacyCheck__": true,
"lazyCodeLoading": "requiredComponents",
"usingComponents": {}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/common/vendor"],{257:function(e,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.statusList=void 0;var n=[{id:0,name:"待处理"},{id:1,name:"已到客户家"},{id:2,name:"已接到客户"},{id:3,name:"已到医院"},{id:4,name:"已完成诊疗"}];a.statusList=n}}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package_sub/common/vendor.js.map

@ -1,2 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/login/login"],{243:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(244));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},244:function(e,n,t){"use strict";t.r(n);var o=t(245),r=t(247);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t(249);var i,u=t(35),s=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"6126915d",null,!1,o["components"],i);s.options.__file="package_sub/login/login.vue",n["default"]=s.exports},245:function(e,n,t){"use strict";t.r(n);var o=t(246);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},246:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return o}));try{o={uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,415))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n,t){var o=arguments[arguments.length-1].currentTarget.dataset,r=o.eventParams||o["event-params"];t=r.item;e.form.role=t.value})},a=!1,i=[];r._withStripped=!0},247:function(e,n,t){"use strict";t.r(n);var o=t(248),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},248:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{form:{username:"",password:"",role:e.getStorageSync("login_role")||"nurse"},roleList:[{value:"nurse",label:"护工"},{value:"staff",label:"工作人员"},{value:"operator",label:"运营人员"}],site_name:""}},onReady:function(){},onShareAppMessage:function(){return{title:"医康养服务",path:"/pages/index/index"}},methods:{login:function(){var n=this;if(this.form.username&&this.form.password)if(this.form.role){var t=this,o=null;switch(this.form.role){case"nurse":o=this.$u.api.login;break;case"staff":o=this.$u.api.staffLogin;break;case"operator":o=this.$u.api.operatorLogin;break;default:return void e.showToast({title:"无效的角色选择",icon:"none"})}o({username:this.form.username,password:this.form.password}).then((function(o){if(console.log("res1",o),40002!==o.errcode){e.setStorageSync("login_role",n.form.role);var r=e.getStorageSync("login_role");"staff"===r?t.$u.vuex("vuex_token",o.token):"operator"===r?t.$u.vuex("vuex_token",o.access_token):t.$u.vuex("vuex_token",o.token),t.base.toast("登录成功",1500,(function(){e.login({provider:"weixin",success:function(n){var o=n.code;setTimeout((function(){var n=e.getStorageSync("login_role");"staff"===n?t.$u.api.appletLogin({code:o}).then((function(n){e.reLaunch({url:"/pages/index/staffIndex"})})).catch((function(e){console.error("静默登录失败",e)})):"operator"===n?e.reLaunch({url:"/pages/index/operatorIndex"}):t.$u.api.nurseAppletLogin({code:o}).then((function(n){e.switchTab({url:"/pages/index/index"})})).catch((function(e){console.error("静默登录失败",e)}))}),1500)},fail:function(e){console.error("获取微信code失败",e)}})}))}else t.base.toast("账号密码不正确")})).catch((function(e){console.error("登录失败",e),t.base.toast("登录失败,请稍后重试")}))}else e.showToast({title:"请选择登录角色",icon:"none"});else e.showToast({title:"请输入用户名和密码",icon:"none"})}}};n.default=t}).call(this,t(2)["default"])},249:function(e,n,t){"use strict";t.r(n);var o=t(250),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},250:function(e,n,t){}},[[243,"common/runtime","common/vendor"]]]);
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/login/login"],{243:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(244));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},244:function(e,n,t){"use strict";t.r(n);var o=t(245),r=t(247);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t(249);var i,u=t(35),s=Object(u["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"6126915d",null,!1,o["components"],i);s.options.__file="package_sub/login/login.vue",n["default"]=s.exports},245:function(e,n,t){"use strict";t.r(n);var o=t(246);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},246:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return o}));try{o={uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,415))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n,t){var o=arguments[arguments.length-1].currentTarget.dataset,r=o.eventParams||o["event-params"];t=r.item;e.form.role=t.value})},a=!1,i=[];r._withStripped=!0},247:function(e,n,t){"use strict";t.r(n);var o=t(248),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},248:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{form:{username:"",password:"",role:e.getStorageSync("login_role")||"nurse"},roleList:[{value:"nurse",label:"护工"},{value:"staff",label:"工作人员"},{value:"operator",label:"运营人员"}],site_name:""}},onReady:function(){},onShareAppMessage:function(){return{title:"医康养服务",path:"/pages/index/index"}},methods:{login:function(){var n=this;if(this.form.username&&this.form.password)if(this.form.role){var t=this,o=null;switch(this.form.role){case"nurse":o=this.$u.api.login;break;case"staff":o=this.$u.api.staffLogin;break;case"operator":o=this.$u.api.operatorLogin;break;default:return void e.showToast({title:"无效的角色选择",icon:"none"})}o({username:this.form.username,password:this.form.password}).then((function(o){if(console.log("res1",o),40002!==o.errcode){e.setStorageSync("login_role",n.form.role);var r=e.getStorageSync("login_role");"staff"===r?t.$u.vuex("vuex_token",o.token):"operator"===r?t.$u.vuex("vuex_token",o.access_token):t.$u.vuex("vuex_token",o.token),t.base.toast("登录成功",1500,(function(){e.login({provider:"weixin",success:function(n){var o=n.code;setTimeout((function(){var n=e.getStorageSync("login_role");"staff"===n?t.$u.api.appletLogin({code:o}).then((function(n){e.reLaunch({url:"/pages/index/staffIndex"})})).catch((function(e){console.error("静默登录失败",e)})):"operator"===n?e.reLaunch({url:"/pages/index/operatorIndex"}):t.$u.api.nurseAppletLogin({code:o}).then((function(n){e.switchTab({url:"/pages/index/index"})})).catch((function(e){console.error("静默登录失败",e)}))}),1500)},fail:function(e){console.error("获取微信code失败",e)}})}))}else t.base.toast("账号密码不正确")})).catch((function(e){console.error("登录失败",e),t.base.toast("登录失败,请稍后重试")}))}else e.showToast({title:"请选择登录角色",icon:"none"});else e.showToast({title:"请输入用户名和密码",icon:"none"})}}};n.default=t}).call(this,t(2)["default"])},249:function(e,n,t){"use strict";t.r(n);var o=t(250),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},250:function(e,n,t){}},[[243,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package_sub/login/login.js.map

File diff suppressed because one or more lines are too long

@ -1,2 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/order/editPrice"],{276:function(e,n,r){"use strict";(function(e,n){var t=r(4);r(26);t(r(25));var o=t(r(277));e.__webpack_require_UNI_MP_PLUGIN__=r,n(o.default)}).call(this,r(1)["default"],r(2)["createPage"])},277:function(e,n,r){"use strict";r.r(n);var t=r(278),o=r(280);for(var a in o)["default"].indexOf(a)<0&&function(e){r.d(n,e,(function(){return o[e]}))}(a);r(282);var i,u=r(35),c=Object(u["default"])(o["default"],t["render"],t["staticRenderFns"],!1,null,"3ca55578",null,!1,t["components"],i);c.options.__file="package_sub/order/editPrice.vue",n["default"]=c.exports},278:function(e,n,r){"use strict";r.r(n);var t=r(279);r.d(n,"render",(function(){return t["render"]})),r.d(n,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(n,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(n,"components",(function(){return t["components"]}))},279:function(e,n,r){"use strict";var t;r.r(n),r.d(n,"render",(function(){return o})),r.d(n,"staticRenderFns",(function(){return i})),r.d(n,"recyclableRender",(function(){return a})),r.d(n,"components",(function(){return t}));try{t={uNavbar:function(){return r.e("uview-ui/components/u-navbar/u-navbar").then(r.bind(null,338))},uInput:function(){return Promise.all([r.e("common/vendor"),r.e("uview-ui/components/u-input/u-input")]).then(r.bind(null,415))},uIcon:function(){return r.e("uview-ui/components/u-icon/u-icon").then(r.bind(null,390))},uButton:function(){return r.e("uview-ui/components/u-button/u-button").then(r.bind(null,345))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,r=(e._self._c,{background:"#1479ff"});e.$mp.data=Object.assign({},{$root:{a0:r}})},a=!1,i=[];o._withStripped=!0},280:function(e,n,r){"use strict";r.r(n);var t=r(281),o=r.n(t);for(var a in t)["default"].indexOf(a)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(a);n["default"]=o.a},281:function(e,n,r){"use strict";(function(e){var t=r(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(r(30)),a=t(r(32)),i={data:function(){return{orderId:"",orderInfo:{},form:{update_price_reason:"",price:""},loginRole:"",normalStyle:{background:"#969da7",color:"#fff","font-size":"28rpx",padding:"0 30rpx","margin-left":"15rpx"},parStyle:{background:"linear-gradient(to right, #476de4, #7bb9f7)",color:"#fff","font-size":"28rpx",padding:"10rpx 30rpx","margin-left":"15rpx"}}},onLoad:function(n){this.loginRole=e.getStorageSync("login_role")||"",n.id&&(this.orderId=n.id,this.getOrderInfo(n.id))},methods:{getOrderInfo:function(e){var n=this;return(0,a.default)(o.default.mark((function r(){var t,a;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(console.log(n.loginRole),"nurse"!==n.loginRole){r.next=8;break}return r.next=4,n.$u.api.orderDetail({id:e});case 4:t=r.sent,n.orderInfo=t,r.next=12;break;case 8:return r.next=10,n.$u.api.operatorOrderShow({id:e});case 10:a=r.sent,n.orderInfo=a;case 12:case"end":return r.stop()}}),r)})))()},cancel:function(){e.navigateBack()},confirm:function(){var n=this;return(0,a.default)(o.default.mark((function r(){var t;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n.form.price){r.next=3;break}return e.showToast({title:"请输入修改金额",icon:"none"}),r.abrupt("return");case 3:if(!(parseFloat(n.form.price)<parseFloat(n.orderInfo.price))){r.next=6;break}return e.showToast({title:"修改总金额小于原价",icon:"none"}),r.abrupt("return");case 6:if(n.form.update_price_reason){r.next=9;break}return e.showToast({title:"请输入修改原因",icon:"none"}),r.abrupt("return");case 9:t=n,"nurse"===n.loginRole?(t.$u.api.saveOrder({id:t.orderId,price:t.form.price,update_price_reason:t.form.update_price_reason,status:3}),t.base.toast("修改成功",1500,(function(){setTimeout((function(){e.switchTab({url:"/pages/index/index"})}),1500)}))):(t.$u.api.operatorOrderSave({id:t.orderId,price:t.form.price,update_price_reason:t.form.update_price_reason,status:3}),t.base.toast("修改成功",1500,(function(){setTimeout((function(){e.switchTab({url:"/pages/index/operatorIndex"})}),1500)})));case 11:case"end":return r.stop()}}),r)})))()}}};n.default=i}).call(this,r(2)["default"])},282:function(e,n,r){"use strict";r.r(n);var t=r(283),o=r.n(t);for(var a in t)["default"].indexOf(a)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(a);n["default"]=o.a},283:function(e,n,r){}},[[276,"common/runtime","common/vendor"]]]);
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/order/editPrice"],{276:function(e,n,r){"use strict";(function(e,n){var t=r(4);r(26);t(r(25));var o=t(r(277));e.__webpack_require_UNI_MP_PLUGIN__=r,n(o.default)}).call(this,r(1)["default"],r(2)["createPage"])},277:function(e,n,r){"use strict";r.r(n);var t=r(278),o=r(280);for(var a in o)["default"].indexOf(a)<0&&function(e){r.d(n,e,(function(){return o[e]}))}(a);r(282);var i,u=r(35),c=Object(u["default"])(o["default"],t["render"],t["staticRenderFns"],!1,null,"3ca55578",null,!1,t["components"],i);c.options.__file="package_sub/order/editPrice.vue",n["default"]=c.exports},278:function(e,n,r){"use strict";r.r(n);var t=r(279);r.d(n,"render",(function(){return t["render"]})),r.d(n,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(n,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(n,"components",(function(){return t["components"]}))},279:function(e,n,r){"use strict";var t;r.r(n),r.d(n,"render",(function(){return o})),r.d(n,"staticRenderFns",(function(){return i})),r.d(n,"recyclableRender",(function(){return a})),r.d(n,"components",(function(){return t}));try{t={uNavbar:function(){return r.e("uview-ui/components/u-navbar/u-navbar").then(r.bind(null,338))},uInput:function(){return Promise.all([r.e("common/vendor"),r.e("uview-ui/components/u-input/u-input")]).then(r.bind(null,415))},uIcon:function(){return r.e("uview-ui/components/u-icon/u-icon").then(r.bind(null,390))},uButton:function(){return r.e("uview-ui/components/u-button/u-button").then(r.bind(null,345))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,r=(e._self._c,{background:"#1479ff"});e.$mp.data=Object.assign({},{$root:{a0:r}})},a=!1,i=[];o._withStripped=!0},280:function(e,n,r){"use strict";r.r(n);var t=r(281),o=r.n(t);for(var a in t)["default"].indexOf(a)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(a);n["default"]=o.a},281:function(e,n,r){"use strict";(function(e){var t=r(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(r(30)),a=t(r(32)),i={data:function(){return{orderId:"",orderInfo:{},form:{update_price_reason:"",price:""},loginRole:"",normalStyle:{background:"#969da7",color:"#fff","font-size":"28rpx",padding:"0 30rpx","margin-left":"15rpx"},parStyle:{background:"linear-gradient(to right, #476de4, #7bb9f7)",color:"#fff","font-size":"28rpx",padding:"10rpx 30rpx","margin-left":"15rpx"}}},onLoad:function(n){this.loginRole=e.getStorageSync("login_role")||"",n.id&&(this.orderId=n.id,this.getOrderInfo(n.id))},methods:{getOrderInfo:function(e){var n=this;return(0,a.default)(o.default.mark((function r(){var t,a;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(console.log(n.loginRole),"nurse"!==n.loginRole){r.next=8;break}return r.next=4,n.$u.api.orderDetail({id:e});case 4:t=r.sent,n.orderInfo=t,r.next=12;break;case 8:return r.next=10,n.$u.api.operatorOrderShow({id:e});case 10:a=r.sent,n.orderInfo=a;case 12:case"end":return r.stop()}}),r)})))()},cancel:function(){e.navigateBack()},confirm:function(){var n=this;return(0,a.default)(o.default.mark((function r(){var t;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n.form.price){r.next=3;break}return e.showToast({title:"请输入修改金额",icon:"none"}),r.abrupt("return");case 3:if(!(parseFloat(n.form.price)<parseFloat(n.orderInfo.price))){r.next=6;break}return e.showToast({title:"修改总金额小于原价",icon:"none"}),r.abrupt("return");case 6:if(n.form.update_price_reason){r.next=9;break}return e.showToast({title:"请输入修改原因",icon:"none"}),r.abrupt("return");case 9:t=n,"nurse"===n.loginRole?(t.$u.api.saveOrder({id:t.orderId,price:t.form.price,update_price_reason:t.form.update_price_reason,status:3}),t.base.toast("修改成功",1500,(function(){setTimeout((function(){e.switchTab({url:"/pages/index/index"})}),1500)}))):(t.$u.api.operatorOrderSave({id:t.orderId,price:t.form.price,update_price_reason:t.form.update_price_reason,status:3}),t.base.toast("修改成功",1500,(function(){setTimeout((function(){e.switchTab({url:"/pages/index/operatorIndex"})}),1500)})));case 11:case"end":return r.stop()}}),r)})))()}}};n.default=i}).call(this,r(2)["default"])},282:function(e,n,r){"use strict";r.r(n);var t=r(283),o=r.n(t);for(var a in t)["default"].indexOf(a)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(a);n["default"]=o.a},283:function(e,n,r){}},[[276,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package_sub/order/editPrice.js.map

@ -1,2 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/order/order"],{251:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(252));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},252:function(e,t,n){"use strict";n.r(t);var r=n(253),o=n(255);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n(258);var a,s=n(35),i=Object(s["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"668f2732",null,!1,r["components"],a);i.options.__file="package_sub/order/order.vue",t["default"]=i.exports},253:function(e,t,n){"use strict";n.r(t);var r=n(254);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},254:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return u})),n.d(t,"components",(function(){return r}));try{r={uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-input/u-input")]).then(n.bind(null,415))},uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,390))},uLoadmore:function(){return n.e("uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,352))},uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,359))},uSelect:function(){return n.e("uview-ui/components/u-select/u-select").then(n.bind(null,422))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.list.length),r=n>0?0===e.list.length&&1===e.select.page:null;e._isMounted||(e.e0=function(t){e.isShowStatus=!0}),e.$mp.data=Object.assign({},{$root:{g0:n,g1:r}})},u=!1,a=[];o._withStripped=!0},255:function(e,t,n){"use strict";n.r(t);var r=n(256),o=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},256:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(30)),u=r(n(11)),a=r(n(32)),s=r(n(18)),i=n(257);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={data:function(){return{isShowStatus:!1,statusList:[{id:"",name:"全部"}],select:{page:1,page_size:5,keyword:"",status:"",statusName:""},last_page:1,list:[],loadStatus:"loadmore"}},onShow:function(){this.getOrderList()},onLoad:function(){var e;(e=this.statusList).push.apply(e,(0,s.default)(i.statusList))},methods:{toUrl:function(t){e.navigateTo({url:"/package_sub/order/orderDetail?type=order&id="+t})},callTel:function(t){this.base.isNull(t)||e.makePhoneCall({phoneNumber:t})},confirmStatus:function(e){console.log("e",e),this.select.status=e[0].value,this.select.statusName=e[0].label},search:function(){this.select.page=1,this.list=[],this.loadStatus="loadmore",this.getOrderList()},getOrderList:function(){var e=this;return(0,a.default)(o.default.mark((function t(){var n,r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.order(l({},e.select));case 2:r=t.sent,e.last_page=r.last_page,e.loadStatus=e.select.page>=e.last_page?"nomore":"loadmore",(n=e.list).push.apply(n,(0,s.default)(r.data));case 6:case"end":return t.stop()}}),t)})))()},reachBottom:function(){this.select.page>this.last_page?this.loadStatus="nomore":(this.loadStatus="loading",this.select.page++,this.getOrderList())}}};t.default=d}).call(this,n(2)["default"])},258:function(e,t,n){"use strict";n.r(t);var r=n(259),o=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},259:function(e,t,n){}},[[251,"common/runtime","common/vendor"]]]);
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/order/order"],{251:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(252));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},252:function(e,t,n){"use strict";n.r(t);var r=n(253),o=n(255);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n(258);var a,s=n(35),i=Object(s["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"668f2732",null,!1,r["components"],a);i.options.__file="package_sub/order/order.vue",t["default"]=i.exports},253:function(e,t,n){"use strict";n.r(t);var r=n(254);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},254:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return u})),n.d(t,"components",(function(){return r}));try{r={uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-input/u-input")]).then(n.bind(null,415))},uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,390))},uLoadmore:function(){return n.e("uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,352))},uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,359))},uSelect:function(){return n.e("uview-ui/components/u-select/u-select").then(n.bind(null,422))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.list.length),r=n>0?0===e.list.length&&1===e.select.page:null;e._isMounted||(e.e0=function(t){e.isShowStatus=!0}),e.$mp.data=Object.assign({},{$root:{g0:n,g1:r}})},u=!1,a=[];o._withStripped=!0},255:function(e,t,n){"use strict";n.r(t);var r=n(256),o=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},256:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(30)),u=r(n(11)),a=r(n(32)),s=r(n(18)),i=n(257);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={data:function(){return{isShowStatus:!1,statusList:[{id:"",name:"全部"}],select:{page:1,page_size:5,keyword:"",status:"",statusName:""},last_page:1,list:[],loadStatus:"loadmore"}},onShow:function(){this.getOrderList()},onLoad:function(){var e;(e=this.statusList).push.apply(e,(0,s.default)(i.statusList))},methods:{toUrl:function(t){e.navigateTo({url:"/package_sub/order/orderDetail?type=order&id="+t})},callTel:function(t){this.base.isNull(t)||e.makePhoneCall({phoneNumber:t})},confirmStatus:function(e){console.log("e",e),this.select.status=e[0].value,this.select.statusName=e[0].label},search:function(){this.select.page=1,this.list=[],this.loadStatus="loadmore",this.getOrderList()},getOrderList:function(){var e=this;return(0,a.default)(o.default.mark((function t(){var n,r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.order(l({},e.select));case 2:r=t.sent,e.last_page=r.last_page,e.loadStatus=e.select.page>=e.last_page?"nomore":"loadmore",(n=e.list).push.apply(n,(0,s.default)(r.data));case 6:case"end":return t.stop()}}),t)})))()},reachBottom:function(){this.select.page>this.last_page?this.loadStatus="nomore":(this.loadStatus="loading",this.select.page++,this.getOrderList())}}};t.default=d}).call(this,n(2)["default"])},258:function(e,t,n){"use strict";n.r(t);var r=n(259),o=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t["default"]=o.a},259:function(e,t,n){}},[[251,"common/runtime","common/vendor","package_sub/common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package_sub/order/order.js.map

@ -1,2 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/order/orderDetail"],{260:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(261));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},261:function(e,n,t){"use strict";t.r(n);var r=t(262),o=t(264);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);t(266);var i,a=t(35),c=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"6fd8f918",null,!1,r["components"],i);c.options.__file="package_sub/order/orderDetail.vue",n["default"]=c.exports},262:function(e,n,t){"use strict";t.r(n);var r=t(263);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},263:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return u})),t.d(n,"components",(function(){return r}));try{r={uNavbar:function(){return t.e("uview-ui/components/u-navbar/u-navbar").then(t.bind(null,338))},uqrcode:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode")]).then(t.bind(null,373))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,345))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,t=(e._self._c,{background:"#1479ff"});e.$mp.data=Object.assign({},{$root:{a0:t}})},u=!1,i=[];o._withStripped=!0},264:function(e,n,t){"use strict";t.r(n);var r=t(265),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=o.a},265:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(30)),u=r(t(32)),i=function(){Promise.all([t.e("common/vendor"),t.e("uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode")]).then(function(){return resolve(t(373))}.bind(null,t)).catch(t.oe)},a={components:{uqrcode:i},data:function(){return{myQrcode:"",imgs:[],orderId:"",orderInfo:{},parStyle:{background:"linear-gradient(to right, #476de4, #7bb9f7)",color:"#fff","font-size":"28rpx",padding:"0 30rpx","margin-left":"15rpx"},loginRole:""}},onLoad:function(n){this.orderId=n.id,this.loginRole=e.getStorageSync("login_role")||"nurse","staff"===this.loginRole?this.getOrderDetailStaff(n.id):this.getOrderDetail(n.id)},methods:{imgPreview:function(n){e.previewImage({current:n,urls:this.imgs})},getOrderDetail:function(e){var n=this;return(0,u.default)(o.default.mark((function t(){var r,u;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$u.api.orderDetail({id:e});case 2:if(r=t.sent,n.orderInfo=r,u=[],r.files.length>0&&(r.files.map((function(e){u.push(e.url)})),n.imgs=u),3!==r.status){t.next=9;break}return t.next=9,n.getCode(r.no);case 9:case"end":return t.stop()}}),t)})))()},getOrderDetailStaff:function(e){var n=this;return(0,u.default)(o.default.mark((function t(){var r,u;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$u.api.accompanyOrderDetail({id:e});case 2:if(r=t.sent,n.orderInfo=r,u=[],r.files.length>0&&(r.files.map((function(e){u.push(e.url)})),n.imgs=u),3!==r.status){t.next=9;break}return t.next=9,n.getCode(r.no);case 9:case"end":return t.stop()}}),t)})))()},getCode:function(n){var t=this;return(0,u.default)(o.default.mark((function r(){var u;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.$u.api.payCode({no:n});case 2:u=r.sent,"SUCCESS"===u.result.return_code?u.result.code_url?t.myQrcode=u.result.code_url:e.showToast({icon:"none",title:u.result.err_code_des||"获取失败"}):e.showToast({icon:"none",title:"获取失败"});case 4:case"end":return r.stop()}}),r)})))()},isPayCode:function(){this.myQrcode="",this.getOrderDetail(this.orderId)}}};n.default=a}).call(this,t(2)["default"])},266:function(e,n,t){"use strict";t.r(n);var r=t(267),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=o.a},267:function(e,n,t){}},[[260,"common/runtime","common/vendor"]]]);
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/order/orderDetail"],{260:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(261));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},261:function(e,n,t){"use strict";t.r(n);var r=t(262),o=t(264);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);t(266);var i,a=t(35),c=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"6fd8f918",null,!1,r["components"],i);c.options.__file="package_sub/order/orderDetail.vue",n["default"]=c.exports},262:function(e,n,t){"use strict";t.r(n);var r=t(263);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},263:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return u})),t.d(n,"components",(function(){return r}));try{r={uNavbar:function(){return t.e("uview-ui/components/u-navbar/u-navbar").then(t.bind(null,338))},uqrcode:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode")]).then(t.bind(null,373))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,345))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,t=(e._self._c,{background:"#1479ff"});e.$mp.data=Object.assign({},{$root:{a0:t}})},u=!1,i=[];o._withStripped=!0},264:function(e,n,t){"use strict";t.r(n);var r=t(265),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=o.a},265:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(30)),u=r(t(32)),i=function(){Promise.all([t.e("common/vendor"),t.e("uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode")]).then(function(){return resolve(t(373))}.bind(null,t)).catch(t.oe)},a={components:{uqrcode:i},data:function(){return{myQrcode:"",imgs:[],orderId:"",orderInfo:{},parStyle:{background:"linear-gradient(to right, #476de4, #7bb9f7)",color:"#fff","font-size":"28rpx",padding:"0 30rpx","margin-left":"15rpx"},loginRole:""}},onLoad:function(n){this.orderId=n.id,this.loginRole=e.getStorageSync("login_role")||"nurse","staff"===this.loginRole?this.getOrderDetailStaff(n.id):this.getOrderDetail(n.id)},methods:{imgPreview:function(n){e.previewImage({current:n,urls:this.imgs})},getOrderDetail:function(e){var n=this;return(0,u.default)(o.default.mark((function t(){var r,u;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$u.api.orderDetail({id:e});case 2:if(r=t.sent,n.orderInfo=r,u=[],r.files.length>0&&(r.files.map((function(e){u.push(e.url)})),n.imgs=u),3!==r.status){t.next=9;break}return t.next=9,n.getCode(r.no);case 9:case"end":return t.stop()}}),t)})))()},getOrderDetailStaff:function(e){var n=this;return(0,u.default)(o.default.mark((function t(){var r,u;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$u.api.accompanyOrderDetail({id:e});case 2:if(r=t.sent,n.orderInfo=r,u=[],r.files.length>0&&(r.files.map((function(e){u.push(e.url)})),n.imgs=u),3!==r.status){t.next=9;break}return t.next=9,n.getCode(r.no);case 9:case"end":return t.stop()}}),t)})))()},getCode:function(n){var t=this;return(0,u.default)(o.default.mark((function r(){var u;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,t.$u.api.payCode({no:n});case 2:u=r.sent,"SUCCESS"===u.result.return_code?u.result.code_url?t.myQrcode=u.result.code_url:e.showToast({icon:"none",title:u.result.err_code_des||"获取失败"}):e.showToast({icon:"none",title:"获取失败"});case 4:case"end":return r.stop()}}),r)})))()},isPayCode:function(){this.myQrcode="",this.getOrderDetail(this.orderId)}}};n.default=a}).call(this,t(2)["default"])},266:function(e,n,t){"use strict";t.r(n);var r=t(267),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=o.a},267:function(e,n,t){}},[[260,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package_sub/order/orderDetail.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -40,10 +40,13 @@
.detail-page .order-info .info-item .label.data-v-75de4fcc {
color: #666;
font-size: 28rpx;
width: 180rpx;
}
.detail-page .order-info .info-item .value.data-v-75de4fcc {
color: #333;
font-size: 28rpx;
width: calc(100% - 190rpx);
text-align: right;
}
.detail-page .order-info .info-item .value.reason.data-v-75de4fcc {
color: #999;

@ -1,2 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/order/service"],{284:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var u=r(t(285));e.__webpack_require_UNI_MP_PLUGIN__=t,n(u.default)}).call(this,t(1)["default"],t(2)["createPage"])},285:function(e,n,t){"use strict";t.r(n);var r=t(286),u=t(288);for(var c in u)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(c);t(290);var i,a=t(35),o=Object(a["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,"29bb77e4",null,!1,r["components"],i);o.options.__file="package_sub/order/service.vue",n["default"]=o.exports},286:function(e,n,t){"use strict";t.r(n);var r=t(287);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},287:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return u})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return r}));var u=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.$u.throttle(e.$u.route({url:"/package_sub/pages/ServiceList/ServiceList",params:{type:1}}))},e.e1=function(n){e.$u.throttle(e.$u.route({url:"/package_sub/pages/ServiceList/ServiceList",params:{type:2}}))})},c=!1,i=[];u._withStripped=!0},288:function(e,n,t){"use strict";t.r(n);var r=t(289),u=t.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);n["default"]=u.a},289:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={data:function(){return{}},methods:{}};n.default=r},290:function(e,n,t){"use strict";t.r(n);var r=t(291),u=t.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);n["default"]=u.a},291:function(e,n,t){}},[[284,"common/runtime","common/vendor"]]]);
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/order/service"],{284:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var u=r(t(285));e.__webpack_require_UNI_MP_PLUGIN__=t,n(u.default)}).call(this,t(1)["default"],t(2)["createPage"])},285:function(e,n,t){"use strict";t.r(n);var r=t(286),u=t(288);for(var c in u)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(c);t(290);var i,a=t(35),o=Object(a["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,"29bb77e4",null,!1,r["components"],i);o.options.__file="package_sub/order/service.vue",n["default"]=o.exports},286:function(e,n,t){"use strict";t.r(n);var r=t(287);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},287:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return u})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return r}));var u=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.$u.throttle(e.$u.route({url:"/package_sub/pages/ServiceList/ServiceList",params:{type:1}}))},e.e1=function(n){e.$u.throttle(e.$u.route({url:"/package_sub/pages/ServiceList/ServiceList",params:{type:2}}))})},c=!1,i=[];u._withStripped=!0},288:function(e,n,t){"use strict";t.r(n);var r=t(289),u=t.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);n["default"]=u.a},289:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r={data:function(){return{}},methods:{}};n.default=r},290:function(e,n,t){"use strict";t.r(n);var r=t(291),u=t.n(r);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);n["default"]=u.a},291:function(e,n,t){}},[[284,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/package_sub/order/service.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,2 +1,2 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/pages/ServiceDetail/ServiceDetail"],{300:function(e,n,t){"use strict";(function(e,n){var i=t(4);t(26);i(t(25));var r=i(t(301));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},301:function(e,n,t){"use strict";t.r(n);var i=t(302),r=t(304);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(306),t(308);var u,c=t(35),a=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"9eba20e8",null,!1,i["components"],u);a.options.__file="package_sub/pages/ServiceDetail/ServiceDetail.vue",n["default"]=a.exports},302:function(e,n,t){"use strict";t.r(n);var i=t(303);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},303:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return i}));try{i={uSwiper:function(){return t.e("uview-ui/components/u-swiper/u-swiper").then(t.bind(null,429))},uParse:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-parse/u-parse")]).then(t.bind(null,436))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,345))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];r._withStripped=!0},304:function(e,n,t){"use strict";t.r(n);var i=t(305),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},305:function(e,n,t){"use strict";(function(e){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(t(30)),o=i(t(32)),u={data:function(){return{id:"",choose_site:"",site_name:"",currentTab:0,info:{},orderBtnStyle:{"background-image":"linear-gradient(-90deg, #e26165 0%, #c10d12 94%, #c10d12 100%)","font-weight":"500","font-size":"28rpx",color:"#fff",width:"436rpx","margin-top":"32rpx"}}},onLoad:function(n){var t;e.setNavigationBarTitle({title:null!==(t=n.title)&&void 0!==t?t:"服务项目"}),this.id=n.id?n.id:"",this.choose_site=n.choose_site?n.choose_site:"",this.site_name=n.site_name?n.site_name:"",this.getDetail(this.id)},mounted:function(){},computed:{token:function(){var n;return this.vuex_token||(null===(n=e.getStorageSync("lifeData"))||void 0===n?void 0:n.vuex_token)}},methods:{getDetail:function(e){var n=this;return(0,o.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$u.api.accompanyProductDetail({id:e}).then((function(e){console.log("res",e),n.info=e}));case 2:case"end":return t.stop()}}),t)})))()},toOrder:function(n){var t=this;this.token?this.$u.route({url:"/package_sub/pages/AddOrder/AddOrder?id="+n.id+"&site_name="+this.site_name+"&site_id="+this.choose_site+"&type="+n.type+"&can_multi_num="+n.can_multi_num}):e.showModal({title:"提示",content:"请先登录再下单",confirmText:"登录",success:function(e){e.confirm&&t.$u.route({url:"/pages/login/login",type:"redirect"})},fail:function(){}})}}};n.default=u}).call(this,t(2)["default"])},306:function(e,n,t){"use strict";t.r(n);var i=t(307),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},307:function(e,n,t){},308:function(e,n,t){"use strict";t.r(n);var i=t(309),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},309:function(e,n,t){}},[[300,"common/runtime","common/vendor"]]]);
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package_sub/pages/ServiceDetail/ServiceDetail"],{300:function(e,n,t){"use strict";(function(e,n){var i=t(4);t(26);i(t(25));var r=i(t(301));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},301:function(e,n,t){"use strict";t.r(n);var i=t(302),r=t(304);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(306),t(308);var u,c=t(35),a=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"9eba20e8",null,!1,i["components"],u);a.options.__file="package_sub/pages/ServiceDetail/ServiceDetail.vue",n["default"]=a.exports},302:function(e,n,t){"use strict";t.r(n);var i=t(303);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},303:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return i}));try{i={uSwiper:function(){return t.e("uview-ui/components/u-swiper/u-swiper").then(t.bind(null,429))},uParse:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-parse/u-parse")]).then(t.bind(null,436))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,345))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];r._withStripped=!0},304:function(e,n,t){"use strict";t.r(n);var i=t(305),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},305:function(e,n,t){"use strict";(function(e){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(t(30)),o=i(t(32)),u={data:function(){return{id:"",choose_site:"",site_name:"",currentTab:0,info:{},orderBtnStyle:{"background-image":"linear-gradient(-90deg, #e26165 0%, #c10d12 94%, #c10d12 100%)","font-weight":"500","font-size":"28rpx",color:"#fff",width:"436rpx","margin-top":"32rpx"}}},onLoad:function(n){var t;e.setNavigationBarTitle({title:null!==(t=n.title)&&void 0!==t?t:"服务项目"}),this.id=n.id?n.id:"",this.choose_site=n.choose_site?n.choose_site:"",this.site_name=n.site_name?n.site_name:"",this.getDetail(this.id)},mounted:function(){},computed:{token:function(){var n;return this.vuex_token||(null===(n=e.getStorageSync("lifeData"))||void 0===n?void 0:n.vuex_token)}},methods:{getDetail:function(e){var n=this;return(0,o.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$u.api.accompanyProductDetail({id:e}).then((function(e){console.log("res",e),n.info=e}));case 2:case"end":return t.stop()}}),t)})))()},toOrder:function(n){var t=this;this.token?this.$u.route({url:"/package_sub/pages/AddOrder/AddOrder?id="+n.id+"&site_name="+this.site_name+"&site_id="+this.choose_site+"&type="+n.type+"&can_multi_num="+n.can_multi_num}):e.showModal({title:"提示",content:"请先登录再下单",confirmText:"登录",success:function(e){e.confirm&&t.$u.route({url:"/pages/login/login",type:"redirect"})},fail:function(){}})}}};n.default=u}).call(this,t(2)["default"])},306:function(e,n,t){"use strict";t.r(n);var i=t(307),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},307:function(e,n,t){},308:function(e,n,t){"use strict";t.r(n);var i=t(309),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},309:function(e,n,t){}},[[300,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/package_sub/pages/ServiceDetail/ServiceDetail.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save