|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packageorder-pages-updateOtherOrder-updateOtherOrder"],{"0922":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"topnav",props:{title:{type:String,default:""},hasHome:{type:String,default:"home"}},data:function(){return{}},methods:{toback:function(){uni.navigateBack({delta:0})},tohome:function(){this.$emit("tohome")}}};e.default=i},"0b0b":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={topnav:a("d8f1").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("topnav",{attrs:{title:t.pageTitle},on:{tohome:function(e){arguments[0]=e=t.$handleEvent(e),t.tohome.apply(void 0,arguments)}}}),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"listBox"},[a("v-uni-view",{staticClass:"listBoxItem"},[a("v-uni-view",{staticClass:"listBoxItemLeft"},[t._v("生效日期")]),a("v-uni-view",{staticClass:"listBoxItemRight"},[a("v-uni-radio-group",{staticClass:"radiogroup",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.radioChangeAvailable.apply(void 0,arguments)}}},[a("v-uni-label",{staticClass:"radioitemlabel",staticStyle:{"margin-left":"0"}},[a("v-uni-view",[a("v-uni-radio",{staticClass:"radioitem",attrs:{checked:"true",value:"today"}})],1),a("v-uni-view",[t._v("今日生效")])],1),a("v-uni-label",{staticClass:"radioitemlabel",staticStyle:{"margin-left":"0"}},[a("v-uni-view",[a("v-uni-radio",{staticClass:"radioitem",attrs:{value:"tomorrow"}})],1),a("v-uni-view",[t._v("明日生效")])],1)],1)],1)],1)],1),t._l(t.orders,(function(e,i){return[a("v-uni-view",{staticClass:"orderBox"},[a("v-uni-view",{staticClass:"orderHeader"},[a("v-uni-text",{staticClass:"orderNo"},[t._v("订单编号:"+t._s(e.serial))]),a("v-uni-text",{staticClass:"orderStatus"},[t._v(t._s(e.status_name))])],1),a("v-uni-view",{staticClass:"orderBody"},[a("v-uni-view",{staticClass:"orderLine"},[a("v-uni-text",{staticClass:"iconfont iconLocation icon"},[t._v("")]),a("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(e.project.name))]),a("v-uni-text",{staticClass:"orderGe"},[t._v("|")]),a("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(e.bed.building_name)+"-"+t._s(e.bed.area_name)+"-"+t._s(e.bed.room_name)+"-"+t._s(e.bed.name+"床"))])],1),a("v-uni-view",{staticClass:"orderLine"},[a("v-uni-text",{staticClass:"iconfont iconLocation icon"},[t._v("")]),a("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(e.patient.name))]),a("v-uni-text",{staticClass:"orderGe"},[t._v("|")]),a("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(null==e.patient.sex?"男":e.patient.sex))]),a("v-uni-text",{staticClass:"orderGe"},[t._v("|")]),a("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(e.mobile))])],1),a("v-uni-view",{staticClass:"orderLine"},[a("v-uni-text",{staticClass:"iconfont iconLocation icon"},[t._v("")]),a("v-uni-text",{staticClass:"orderTxt"},[t._v(t._s(e.from_date)+" ~ "+t._s(e.to_date)+" 共预约"+t._s(e.days)+"天")])],1),a("v-uni-view",{staticClass:"orderLine"},["one_to_many"==e.change?a("v-uni-text",{staticClass:"orderTxt",staticStyle:{color:"red"}},[t._v("订单由原【1对1】变更为【1对多】")]):t._e(),"many_to_one"==e.change?a("v-uni-text",{staticClass:"orderTxt",staticStyle:{color:"red"}},[t._v("订单由原【1对多】变更为【1对1】")]):t._e()],1)],1),a("v-uni-view",[a("v-uni-view",{staticClass:"listBoxItem"},[a("v-uni-view",{staticClass:"listBoxItemLeft"},[t._v("关联的护工")]),a("v-uni-view",{staticClass:"listBoxItemRight"},[a("v-uni-text",[t._v(t._s(e.paramedic.name))])],1)],1),a("v-uni-view",{staticClass:"listBoxItem"},[a("v-uni-view",{staticClass:"listBoxItemLeft"},[t._v("原价格")]),a("v-uni-view",{staticClass:"listBoxItemRight"},[a("v-uni-text",[t._v(t._s(e.price))])],1)],1),a("v-uni-view",{staticClass:"listBoxItem"},[a("v-uni-view",{staticClass:"listBoxItemLeft"},[t._v("协商后金额")]),a("v-uni-view",{staticClass:"listBoxItemRight"},[a("v-uni-input",{staticClass:"listBoxItemInput",attrs:{type:"number","placeholder-class":"listBoxItemInputPlaceholder",placeholder:"请输入协商价格","data-index":i,value:e.price},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.changePrice.apply(void 0,arguments)}}})],1)],1)],1)],1)]}))],2),a("v-uni-view",{staticClass:"bottom"},[a("v-uni-view",{staticClass:"btnCancel btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindBack.apply(void 0,arguments)}}},[t._v("取消")]),a("v-uni-view",{staticClass:"btnSubmit btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindsubmitFun.apply(void 0,arguments)}}},[t._v("提交")])],1)],1)},o=[]},"284a":function(t,e,a){"use strict";var i=a("7396"),n=a.n(i);n.a},3471:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=(0,i.default)(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,d=!0,s=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return d=t.done,t},e:function(t){s=!0,r=t},f:function(){try{d||null==a["return"]||a["return"]()}finally{if(s)throw r}}}},a("01a2"),a("e39c"),a("bf0f"),a("844d"),a("18f7"),a("de6c"),a("7a76"),a("c9b5");var i=function(t){return t&&t.__esModule?t:{default:t}}(a("5d6b"))},"4aaf":function(t,e,a){"use strict";a.r(e);var i=a("0b0b"),n=a("6c65");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("a26c");var r=a("828b"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"38784e26",null,!1,i["a"],void 0);e["default"]=d.exports},"5aea":function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,"uni-page-body[data-v-38784e26]{padding-top:%?160?%;padding-bottom:%?120?%}.listBoxItemLeft[data-v-38784e26]{font-size:%?28?%}.listBoxItemRight[data-v-38784e26]{font-size:%?28?%}.listBoxItemInput[data-v-38784e26]{border-bottom:%?1?% solid #000}.bottom[data-v-38784e26]{background:#fff;box-shadow:0 %?-2?% %?12?% 0 rgba(0,0,0,.16),inset 0 %?1?% 0 0 #e4e4e4;width:100%;height:%?100?%;position:fixed;bottom:0;left:0;display:flex;justify-content:space-between}.listBoxItem[data-v-38784e26]{padding:%?8?% 0}.btn[data-v-38784e26]{width:50%;line-height:%?100?%;text-align:center;line-height:%?100?%;font-family:SourceHanSansCN-Medium;font-size:%?32?%;letter-spacing:0}.btnCancel[data-v-38784e26]{color:#666;background:#f0f0f0}.btnSubmit[data-v-38784e26]{color:#fff;background:#0dc99e}.btnBox[data-v-38784e26]{display:flex;justify-content:space-around;padding:%?30?%}.line-btn[data-v-38784e26]{display:flex;width:48%;height:%?90?%;background:#fff;border:%?2?% solid #0dc99e;line-height:%?90?%;justify-content:center;border-radius:8px;margin-left:1%;margin-right:1%}.line-btn-txt[data-v-38784e26]{font-family:SourceHanSansCN-Medium;font-size:%?32?%;color:#0dc99e;letter-spacing:0}.line-btn-green[data-v-38784e26]{background:#0dc99e}.line-btn-txt-green[data-v-38784e26]{color:#fff}.icon-check[data-v-38784e26]{font-size:%?36?%;margin-right:%?20?%}.icon-check-on[data-v-38784e26]{color:#0cb790}.icon-Icons_ToolBar_ArrowRight[data-v-38784e26]{color:rgba(0,0,0,.45);font-size:%?22?%;margin-left:%?13?%;margin-top:%?5?%}.selectBox[data-v-38784e26]{padding:%?30?%;background-color:#fff}.selectBoxTitle[data-v-38784e26]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#666;margin-bottom:%?20?%}.radiogroup[data-v-38784e26]{display:flex;flex-direction:row}.radioitemlabel[data-v-38784e26]{flex:1;display:flex;align-items:center;margin-left:%?134?%}.selectBoxTagBox[data-v-38784e26]{display:flex;flex-wrap:wrap}.selectBoxTag[data-v-38784e26]{width:%?210?%;height:%?48?%;background:rgba(13,201,158,.1);border:%?1?% solid #0dc99e;border-radius:%?8?%;line-height:%?48?%;justify-content:center;display:flex;align-items:center;margin-right:%?20?%;margin-top:%?20?%}.selectBoxTagD[data-v-38784e26]{font-family:SourceHanSansCN-Normal;font-size:%?28?%;color:#0dc99e;letter-spacing:0;line-height:%?36?%}.icon-close[data-v-38784e26]{font-size:%?24?%;color:#0dc99e;margin-left:%?12.5?%}.orderLine[data-v-38784e26]{flex-direction:row;margin-top:%?16?%;align-items:center}.orderTxt[data-v-38784e26]{font-family:SourceHanSansCN-Normal;font-size:%?28?%;color:#333;line-height:%?36?%}.iconback[data-v-38784e26]{width:%?40?%;height:%?40?%}.navTab[data-v-38784e26]{background:#fafafa;box-shadow:0 1px 0 0 #e6e6e6;flex-direction:row;justify-content:space-around;top:%?140?%;left:0;position:fixed;z-index:999;width:%?750?%}.tabItem[data-v-38784e26]{align-items:center;position:relative}.orderGe[data-v-38784e26]{color:#d8d8d8;margin-left:%?16?%;margin-right:%?16?%;font-size:%?28?%}.tabTxt[data-v-38784e26]{font-size:%?28?%;color:#666;text-align:left;height:%?70?%;line-height:%?70?%}.tabItemOn[data-v-38784e26]{color:#0dc99e}.tabItemOnLine[data-v-38784e26]{background:#0dc99e;height:%?4?%;width:%?100?%;position:absolute;bottom:%?-2?%;left:0}.orderBox[data-v-38784e26]{padding-top:%?16?%;padding-bottom:%?16?%;padding-left:%?30?%;padding-right:%?30?%;background:#fff;margin-top:%?20?%}.orderHeader[data-v-38784e26]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:%?16?%;border-bottom:%?1?% solid #e4e4e4;align-items:center}.orderBody[data-v-38784e26]{border-bottom:%?1?% solid #e4e4e4;padding-bottom:%?16?%}.orderStatus[data-v-38784e26]{font-family:PingFangSC-Regular;font-size:%?28?%;color:#fd8c30;text-align:left;line-height:%?40?%}.orderNo[data-v-38784e26]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;line-height:%?24?%}.orderTag[data-v-38784e26]{background:rgba(13,201,158,.1);border-radius:2px;width:%?100?%;padding:%?4?% %?10?%;margin-right:%?10?%}.orderTagTxt[data-v-38784e26]{font-family:SourceHanSansCN-Normal;font-size:%?20?%;text-align:center}.tag1[data-v-38784e26]{color:#0dc99e}.tag2[data-v-38784e26]{color:#4a90e2}.tag3[data-v-38784e26]{color:#fd8c30}.tagBox2[data-v-38784e26]{background:rgba(60,145,245,.1)}.tagBox3[data-v-38784e26]{background:rgba(253,140,48,.1)}.orderPrice[data-v-38784e26]{flex-direction:row;margin-top:%?16?%;border-bottom:%?1?% solid #e4e4e4;padding-bottom:%?16?%}.priceBox[data-v-38784e26]{margin-right:%?30?%;flex-direction:row;align-items:center}.priceTitle[data-v-38784e26]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;line-height:%?28?%}.priceInfo[data-v-38784e26]{font-family:Roboto-Medium;font-size:%?24?%;color:#333;text-align:left;line-height:%?40?%}.orderFooter[data-v-38784e26]{margin-top:%?16?%;padding-bottom:%?16?%;flex-direction:row;justify-content:flex-end}.icon[data-v-38784e26]{color:#52d5a6;margin-right:%?12?%;font-size:%?28?%}.navRight[data-v-38784e26]{flex-direction:row}",""]),t.exports=e},"667b":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("aa9c"),a("d4b5");var n=i(a("3471")),o=a("e0a6"),r={data:function(){return{pageTitle:"编辑相关订单",orders:[],from_paramedic_id:"",id:"",available_day:"today"}},onLoad:function(t){this.from_paramedic_id=t.from_paramedic_id,this.id=t.id,this.getOrders()},methods:{radioChangeAvailable:function(t){this.available_day=t.detail.value},changePrice:function(t){var e=t.currentTarget.dataset.index,a=t.detail.value;this.orders[e].newPrice=a,console.log(this.orders)},bindBack:function(){uni.navigateTo({url:"/pages/order/order"})},getOrders:function(){var t=this,e="manager/get-affected-orders/"+t.id;o.request({bindThis:t,customLoading:!1,api:e,data:{from_order_id:t.id,from_paramedic_id:t.from_paramedic_id},utilSuccess:function(e){var a,i=(0,n.default)(e);try{for(i.s();!(a=i.n()).done;){var o=a.value;o.newPrice=o.price}}catch(r){i.e(r)}finally{i.f()}t.orders=e},utilFail:function(t){}})},bindsubmitFun:function(){for(var t=this,e=!1,a=[],i=0;i<this.orders.length;i++){var n=this.orders[i];if(o.isNull(n.newPrice)){e=!0;break}a.push({order_id:n.id,price:n.newPrice})}var r={available_day:t.available_day,price:JSON.stringify(a)};if(e)return o.alert("请填写协商后的价格!"),!1;uni.showModal({title:"提示",content:"请确认您的修改内容?",confirmText:"确认",confirmColor:"#000",cancelColor:"#eee",success:function(e){t.toUpdate(r)}})},toUpdate:function(t){var e=this;o.request({bindThis:e,method:"POST",customLoading:!1,api:"manager/update-order-price",data:t,utilSuccess:function(t){console.log("3:提交成功返回"+t),uni.showModal({title:"更新成功",success:function(){e.afterUpdate()}})},utilFail:function(t){console.log("4:提交失败"+t),o.alert(t)}})},afterUpdate:function(){uni.navigateTo({url:"../orderinfo/orderinfo?id="+this.id})}}};e.default=r},"6c65":function(t,e,a){"use strict";a.r(e);var i=a("667b"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},7396:function(t,e,a){var i=a("7a82");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("245bb68a",i,!0,{sourceMap:!1,shadowMode:!1})},"7a82":function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,".icon-home[data-v-2198d501]{padding-left:%?55?%;font-size:%?42?%}.nav[data-v-2198d501]{height:%?160?%;background-image:linear-gradient(130deg,#52d5a6,#43c9cf);display:flex;align-items:center;padding:%?0?% %?30?%;padding-top:%?48?%;position:fixed;box-sizing:border-box;top:%?0?%;left:0;width:100%;overflow:hidden;z-index:9999;justify-content:space-between}.nav .navLeft[data-v-2198d501]{display:flex}.nav .navTitle[data-v-2198d501]{font-family:SourceHanSansCN-Medium;font-size:%?36?%;color:#fff;letter-spacing:%?0.37?%;line-height:%?50?%;margin-left:%?40?%;font-weight:600}.nav .navLeft .icon-fanhui[data-v-2198d501]{color:#fff;font-size:%?45?%}.navRight[data-v-2198d501]{display:flex;align-items:center}",""]),t.exports=e},8847:function(t,e,a){var i=a("5aea");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("8890faa8",i,!0,{sourceMap:!1,shadowMode:!1})},9203:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"nav"},[a("v-uni-view",{staticClass:"navLeft"},[a("v-uni-view",{staticClass:"back",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toback.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"iconfont icon-fanhui"})],1),a("v-uni-view",{staticClass:"navTitle"},[t._v(t._s(t.title))])],1),a("v-uni-view",{staticClass:"navRight"},[t._t("default"),"home"==t.hasHome?a("v-uni-text",{staticClass:"iconfont icon-home iconTop",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tohome.apply(void 0,arguments)}}}):t._e()],2)],1)],1)},n=[]},a26c:function(t,e,a){"use strict";var i=a("8847"),n=a.n(i);n.a},ab66:function(t,e,a){"use strict";a.r(e);var i=a("0922"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},d8f1:function(t,e,a){"use strict";a.r(e);var i=a("9203"),n=a("ab66");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("284a");var r=a("828b"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"2198d501",null,!1,i["a"],void 0);e["default"]=d.exports}}]); |