|
@@ -9,7 +9,6 @@ export default {
|
|
|
type: [String, Number],
|
|
|
require: true,
|
|
|
},
|
|
|
-
|
|
|
},
|
|
|
components: {
|
|
|
ElFormatValue: () => import("../components/format-value/index.vue"),
|
|
@@ -30,6 +29,12 @@ export default {
|
|
|
problemPicture: [],
|
|
|
},
|
|
|
imgUrl: require("../images/order.png"),
|
|
|
+ phone: "",
|
|
|
+ show: false,
|
|
|
+ actions: [
|
|
|
+ { name: "拨号", key: "call" },
|
|
|
+ { name: "复制", key: "copy" },
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -68,6 +73,37 @@ export default {
|
|
|
this.loading = false;
|
|
|
}
|
|
|
},
|
|
|
+ useCall(prop) {
|
|
|
+ // this.phone = prop.phone;
|
|
|
+ this.phone = prop.processorWay;
|
|
|
+ this.show = true;
|
|
|
+ },
|
|
|
+ async onSelect({ key, name }) {
|
|
|
+ this.show = false;
|
|
|
+ if (key === "call") {
|
|
|
+ window.location.href = `tel:${this.phone}`;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (key === "copy") {
|
|
|
+ let clipboard = navigator.clipboard || {
|
|
|
+ writeText: (text) => {
|
|
|
+ let copyInput = document.createElement("input");
|
|
|
+ copyInput.value = text;
|
|
|
+ document.body.appendChild(copyInput);
|
|
|
+ copyInput.select();
|
|
|
+ document.execCommand("copy");
|
|
|
+ document.body.removeChild(copyInput);
|
|
|
+ },
|
|
|
+ };
|
|
|
+ if (clipboard) {
|
|
|
+ await clipboard.writeText(this.phone);
|
|
|
+ return this.$toast("已复制到剪贴板");
|
|
|
+ }
|
|
|
+ // await navigator.clipboard.writeText(this.phone);
|
|
|
+ //
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onCancel() {},
|
|
|
},
|
|
|
created() {},
|
|
|
};
|
|
@@ -123,12 +159,6 @@ export default {
|
|
|
v-for="({ item, attr }, index) in formColumns"
|
|
|
:label="item.title"
|
|
|
>
|
|
|
- <!-- <el-image
|
|
|
- v-if="attr.is === 'el-image-preview'"
|
|
|
- style="width: 50px; height: 50px; margin-right: 10px"
|
|
|
- src="https://dev-sy.derom.com/document-center/minio/1f196e04-7524-4bbf-991d-c5072599a6fd_2a991c4c9dc966b7bb5d3d0686fa3c14.jpg"
|
|
|
- fit="contain"
|
|
|
- ></el-image> -->
|
|
|
<el-format-value
|
|
|
v-if="attr.is === 'el-select'"
|
|
|
v-model="params[item.key]"
|
|
@@ -157,11 +187,30 @@ export default {
|
|
|
color="#0095ff"
|
|
|
size="large"
|
|
|
>
|
|
|
- {{ flow.content }}
|
|
|
+ <div>
|
|
|
+ <span>{{ flow.content }}</span>
|
|
|
+ <div>
|
|
|
+ <span>处理人:{{ flow.processorName }}</span>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="useCall(flow)"
|
|
|
+ style="padding: 6px 12px 0px"
|
|
|
+ >{{ flow.processorWay }}</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</el-timeline-item>
|
|
|
<el-timeline-item color="#ff8500" size="large"></el-timeline-item>
|
|
|
</el-timeline>
|
|
|
</el-card>
|
|
|
+ <van-action-sheet
|
|
|
+ v-model="show"
|
|
|
+ :actions="actions"
|
|
|
+ cancel-text="取消"
|
|
|
+ close-on-click-action
|
|
|
+ @cancel="onCancel"
|
|
|
+ @select="onSelect"
|
|
|
+ />
|
|
|
</el-form>
|
|
|
</el-drawer>
|
|
|
</template>
|
|
@@ -184,14 +233,14 @@ export default {
|
|
|
}
|
|
|
::v-deep .el-descriptions__header {
|
|
|
margin: 0 0 12px;
|
|
|
- color: #606266;
|
|
|
+ color: #303133;
|
|
|
}
|
|
|
::v-deep .el-descriptions__title {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.mes_title {
|
|
|
width: 100%;
|
|
|
- font-size: 13px;
|
|
|
+ font-size: 14px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|