|
@@ -2,9 +2,9 @@
|
|
|
* @Author: liuzhenlin 461480418@qq.ocm
|
|
* @Author: liuzhenlin 461480418@qq.ocm
|
|
|
* @Date: 2023-01-12 11:57:48
|
|
* @Date: 2023-01-12 11:57:48
|
|
|
* @LastEditors: liuzhenlin
|
|
* @LastEditors: liuzhenlin
|
|
|
- * @LastEditTime: 2023-02-21 17:47:39
|
|
|
|
|
|
|
+ * @LastEditTime: 2023-03-08 15:15:33
|
|
|
* @Description: file content
|
|
* @Description: file content
|
|
|
- * @FilePath: \frontend_mobile\pages\project\upgrade.vue
|
|
|
|
|
|
|
+ * @FilePath: \oms\pages\project\upgrade.vue
|
|
|
-->
|
|
-->
|
|
|
<template>
|
|
<template>
|
|
|
<view class="home">
|
|
<view class="home">
|
|
@@ -64,10 +64,7 @@
|
|
|
borderBottom
|
|
borderBottom
|
|
|
customStyle="padding:40rpx 0 30rpx"
|
|
customStyle="padding:40rpx 0 30rpx"
|
|
|
@click="$refs.dealer.open()">
|
|
@click="$refs.dealer.open()">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- <view class="label-tag"></view>
|
|
|
|
|
- 经销商/代理商
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">经销商/代理商</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
:readonly="true"
|
|
:readonly="true"
|
|
|
placeholder="请选择经销商/代理商"
|
|
placeholder="请选择经销商/代理商"
|
|
@@ -79,9 +76,7 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<u-form-item prop="parentReceiver" borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
<u-form-item prop="parentReceiver" borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 总部对接人
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">总部对接人</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
placeholder="输入总部对接人"
|
|
placeholder="输入总部对接人"
|
|
|
v-model="addForm.parentReceiver"
|
|
v-model="addForm.parentReceiver"
|
|
@@ -91,10 +86,8 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
</view>
|
|
</view>
|
|
|
- <u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 技术支持人员
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <u-form-item borderBottom customStyle="padding:40rpx 0 30rpx" v-if="addForm.nboType !== '30'">
|
|
|
|
|
+ <view class="form-label flex_l">技术支持人员</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
placeholder="输入技术支持人员"
|
|
placeholder="输入技术支持人员"
|
|
|
v-model="addForm.technicalSupportName"
|
|
v-model="addForm.technicalSupportName"
|
|
@@ -103,7 +96,11 @@
|
|
|
clearable
|
|
clearable
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
- <u-form-item prop="technicalSupportContent" borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
|
|
|
|
+ <u-form-item
|
|
|
|
|
+ prop="technicalSupportContent"
|
|
|
|
|
+ borderBottom
|
|
|
|
|
+ customStyle="padding:40rpx 0 30rpx"
|
|
|
|
|
+ v-if="addForm.nboType !== '30'">
|
|
|
<view class="form-label flex_l">
|
|
<view class="form-label flex_l">
|
|
|
<view class="label-tag"></view>
|
|
<view class="label-tag"></view>
|
|
|
技术支持内容
|
|
技术支持内容
|
|
@@ -116,10 +113,12 @@
|
|
|
clearable
|
|
clearable
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
- <u-form-item borderBottom customStyle="padding:40rpx 0 30rpx" @click="showSupportDate = true">
|
|
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 技术支持时间
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <u-form-item
|
|
|
|
|
+ borderBottom
|
|
|
|
|
+ customStyle="padding:40rpx 0 30rpx"
|
|
|
|
|
+ @click="showSupportDate = true"
|
|
|
|
|
+ v-if="addForm.nboType !== '30'">
|
|
|
|
|
+ <view class="form-label flex_l">技术支持时间</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
:readonly="true"
|
|
:readonly="true"
|
|
|
placeholder="请选择技术支持时间"
|
|
placeholder="请选择技术支持时间"
|
|
@@ -132,9 +131,7 @@
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<view v-if="addForm.nboType !== '30'">
|
|
<view v-if="addForm.nboType !== '30'">
|
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx" @click="showBudgetDate = true">
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx" @click="showBudgetDate = true">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 项目预算期限
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">项目预算期限</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
:readonly="true"
|
|
:readonly="true"
|
|
|
placeholder="请选择项目预算期限"
|
|
placeholder="请选择项目预算期限"
|
|
@@ -146,9 +143,7 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 资金来源
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">资金来源</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
placeholder="输入资金来源"
|
|
placeholder="输入资金来源"
|
|
|
v-model="addForm.capitalSource"
|
|
v-model="addForm.capitalSource"
|
|
@@ -158,9 +153,7 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 产品/方案满足情况
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">产品/方案满足情况</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
placeholder="输入产品/方案满足情况"
|
|
placeholder="输入产品/方案满足情况"
|
|
|
v-model="addForm.productSatisfaction"
|
|
v-model="addForm.productSatisfaction"
|
|
@@ -171,8 +164,13 @@
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-if="addForm.nboType === '10'">
|
|
<view v-if="addForm.nboType === '10'">
|
|
|
- <u-form-item borderBottom customStyle="padding:40rpx 0 30rpx" @click="showChasingWay = true">
|
|
|
|
|
|
|
+ <u-form-item
|
|
|
|
|
+ prop="purchasingWayVal"
|
|
|
|
|
+ borderBottom
|
|
|
|
|
+ customStyle="padding:40rpx 0 30rpx"
|
|
|
|
|
+ @click="showChasingWay = true">
|
|
|
<view class="form-label flex_l">
|
|
<view class="form-label flex_l">
|
|
|
|
|
+ <view class="label-tag"></view>
|
|
|
采购方式
|
|
采购方式
|
|
|
</view>
|
|
</view>
|
|
|
<u-input
|
|
<u-input
|
|
@@ -185,8 +183,13 @@
|
|
|
clearable
|
|
clearable
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
- <u-form-item borderBottom customStyle="padding:40rpx 0 30rpx" @click="showPurchasingDate = true">
|
|
|
|
|
|
|
+ <u-form-item
|
|
|
|
|
+ prop="technicalSupportTime"
|
|
|
|
|
+ borderBottom
|
|
|
|
|
+ customStyle="padding:40rpx 0 30rpx"
|
|
|
|
|
+ @click="showPurchasingDate = true">
|
|
|
<view class="form-label flex_l">
|
|
<view class="form-label flex_l">
|
|
|
|
|
+ <view class="label-tag"></view>
|
|
|
采购时间
|
|
采购时间
|
|
|
</view>
|
|
</view>
|
|
|
<u-input
|
|
<u-input
|
|
@@ -200,9 +203,7 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx" @click="selectContact()">
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx" @click="selectContact()">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 决策人员
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">决策人员</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
:readonly="true"
|
|
:readonly="true"
|
|
|
placeholder="输入决策人员"
|
|
placeholder="输入决策人员"
|
|
@@ -213,9 +214,7 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 决策部门
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">决策部门</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
:readonly="true"
|
|
:readonly="true"
|
|
|
placeholder="输入决策部门"
|
|
placeholder="输入决策部门"
|
|
@@ -226,9 +225,7 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 经销商与客户历史成交信息
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">经销商与客户历史成交信息</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
placeholder="输入经销商与客户历史成交信息"
|
|
placeholder="输入经销商与客户历史成交信息"
|
|
|
v-model="addForm.historicalTransactionInfo"
|
|
v-model="addForm.historicalTransactionInfo"
|
|
@@ -238,9 +235,7 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 经销商销售人员
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">经销商销售人员</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
placeholder="输入经销商销售人员"
|
|
placeholder="输入经销商销售人员"
|
|
|
v-model="addForm.dealerSalesName"
|
|
v-model="addForm.dealerSalesName"
|
|
@@ -250,9 +245,7 @@
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
<u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
- <view class="form-label flex_l">
|
|
|
|
|
- 维护部门及人员
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="form-label flex_l">维护部门及人员</view>
|
|
|
<u-input
|
|
<u-input
|
|
|
placeholder="输入维护部门及人员"
|
|
placeholder="输入维护部门及人员"
|
|
|
v-model="addForm.accendant"
|
|
v-model="addForm.accendant"
|
|
@@ -261,37 +254,66 @@
|
|
|
clearable
|
|
clearable
|
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
customStyle="padding: 0 30rpx 0 12rpx"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
- <u-form-item borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
|
|
|
|
+ <u-form-item prop="isAdoptDashoo" borderBottom customStyle="padding:40rpx 0 30rpx">
|
|
|
<view class="form-label flex_l">
|
|
<view class="form-label flex_l">
|
|
|
|
|
+ <view class="label-tag"></view>
|
|
|
是否采纳大数技术参数
|
|
是否采纳大数技术参数
|
|
|
</view>
|
|
</view>
|
|
|
- <u-radio-group v-model="addForm.isAdoptDashoo" placement="row">
|
|
|
|
|
|
|
+ <u-radio-group v-model="addForm.isAdoptDashoo" placement="row" @change="chooseRadio">
|
|
|
<u-radio customStyle="margin-right:40rpx" label="是" name="10"></u-radio>
|
|
<u-radio customStyle="margin-right:40rpx" label="是" name="10"></u-radio>
|
|
|
<u-radio customStyle="margin-right:40rpx" label="否" name="20"></u-radio>
|
|
<u-radio customStyle="margin-right:40rpx" label="否" name="20"></u-radio>
|
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
|
|
+ <u-form-item
|
|
|
|
|
+ prop="file"
|
|
|
|
|
+ borderBottom
|
|
|
|
|
+ customStyle="padding:40rpx 0 30rpx"
|
|
|
|
|
+ v-if="addForm.isAdoptDashoo == '10'">
|
|
|
|
|
+ <view class="form-label flex_l">
|
|
|
|
|
+ <view class="label-tag"></view>
|
|
|
|
|
+ 文件
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <uni-file-picker file-mediatype="all" mode="grid" @select="chooseFile($event)" ref="upload" limit="1">
|
|
|
|
|
+ <view class="upload-btn">
|
|
|
|
|
+ <u-icon name="plus-circle-fill" color="blue" size="28"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </uni-file-picker>
|
|
|
|
|
+ </u-form-item>
|
|
|
</view>
|
|
</view>
|
|
|
- <u-form-item prop="remark" customStyle="padding:40rpx 0 30rpx">
|
|
|
|
|
|
|
+ <u-form-item
|
|
|
|
|
+ prop="projConversionReason"
|
|
|
|
|
+ customStyle="padding:40rpx 0 30rpx"
|
|
|
|
|
+ v-if="addForm.isAdoptDashoo != '30'">
|
|
|
|
|
+ <view class="form-label flex_l">升级原因</view>
|
|
|
|
|
+ <u-textarea
|
|
|
|
|
+ fontSize="26rpx"
|
|
|
|
|
+ v-model="addForm.projConversionReason"
|
|
|
|
|
+ placeholder="请输入升级原因"
|
|
|
|
|
+ height="180"
|
|
|
|
|
+ :count="true"
|
|
|
|
|
+ maxlength="300"></u-textarea>
|
|
|
|
|
+ </u-form-item>
|
|
|
|
|
+ <u-form-item prop="remark" customStyle="padding:40rpx 0 30rpx" v-else>
|
|
|
<view class="form-label flex_l">
|
|
<view class="form-label flex_l">
|
|
|
<view class="label-tag"></view>
|
|
<view class="label-tag"></view>
|
|
|
- 备注原因
|
|
|
|
|
|
|
+ 转化原因
|
|
|
</view>
|
|
</view>
|
|
|
<u-textarea
|
|
<u-textarea
|
|
|
fontSize="26rpx"
|
|
fontSize="26rpx"
|
|
|
v-model="addForm.remark"
|
|
v-model="addForm.remark"
|
|
|
- placeholder="请输入备注原因"
|
|
|
|
|
|
|
+ placeholder="请输入转化原因"
|
|
|
height="180"
|
|
height="180"
|
|
|
:count="true"
|
|
:count="true"
|
|
|
maxlength="300"></u-textarea>
|
|
maxlength="300"></u-textarea>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
</u-form>
|
|
</u-form>
|
|
|
- <view class="save" @click="handleDowngrade">提交</view>
|
|
|
|
|
|
|
+ <view class="save" @click="handleUpgrade">提交</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 技术支持时间 -->
|
|
<!-- 技术支持时间 -->
|
|
|
<u-datetime-picker
|
|
<u-datetime-picker
|
|
|
v-if="showSupportDate"
|
|
v-if="showSupportDate"
|
|
|
:show="showSupportDate"
|
|
:show="showSupportDate"
|
|
|
- mode="datetime"
|
|
|
|
|
|
|
+ mode="date"
|
|
|
v-model="addForm.technicalSupportTime"
|
|
v-model="addForm.technicalSupportTime"
|
|
|
@cancel="showSupportDate = false"
|
|
@cancel="showSupportDate = false"
|
|
|
@confirm="pickSupportDate"></u-datetime-picker>
|
|
@confirm="pickSupportDate"></u-datetime-picker>
|
|
@@ -299,7 +321,7 @@
|
|
|
<u-datetime-picker
|
|
<u-datetime-picker
|
|
|
v-if="showBudgetDate"
|
|
v-if="showBudgetDate"
|
|
|
:show="showBudgetDate"
|
|
:show="showBudgetDate"
|
|
|
- mode="datetime"
|
|
|
|
|
|
|
+ mode="date"
|
|
|
v-model="addForm.nboBudgetTime"
|
|
v-model="addForm.nboBudgetTime"
|
|
|
@cancel="showBudgetDate = false"
|
|
@cancel="showBudgetDate = false"
|
|
|
@confirm="pickBudgetDate"></u-datetime-picker>
|
|
@confirm="pickBudgetDate"></u-datetime-picker>
|
|
@@ -307,7 +329,7 @@
|
|
|
<u-datetime-picker
|
|
<u-datetime-picker
|
|
|
v-if="showPurchasingDate"
|
|
v-if="showPurchasingDate"
|
|
|
:show="showPurchasingDate"
|
|
:show="showPurchasingDate"
|
|
|
- mode="datetime"
|
|
|
|
|
|
|
+ mode="date"
|
|
|
v-model="addForm.purchasingTime"
|
|
v-model="addForm.purchasingTime"
|
|
|
@cancel="showPurchasingDate = false"
|
|
@cancel="showPurchasingDate = false"
|
|
|
@confirm="pickPurchasingDate"></u-datetime-picker>
|
|
@confirm="pickPurchasingDate"></u-datetime-picker>
|
|
@@ -329,7 +351,7 @@
|
|
|
content="确认进行项目升级?"
|
|
content="确认进行项目升级?"
|
|
|
:showCancelButton="true"
|
|
:showCancelButton="true"
|
|
|
@cancel="this.showModal = false"
|
|
@cancel="this.showModal = false"
|
|
|
- @confirm="this.handleDownApi()"></u-modal>
|
|
|
|
|
|
|
+ @confirm="this.handleUpgradeApi()"></u-modal>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -358,21 +380,24 @@
|
|
|
technicalSupportName: '', //技术支持人员
|
|
technicalSupportName: '', //技术支持人员
|
|
|
technicalSupportContent: null, //技术支持内容
|
|
technicalSupportContent: null, //技术支持内容
|
|
|
technicalSupportTime: '', //技术支持时间
|
|
technicalSupportTime: '', //技术支持时间
|
|
|
- nboBudgetTime: this.parseTime(new Date(), '{y}-{m}-{d} {h}:{i}'), //项目预算时间
|
|
|
|
|
|
|
+ nboBudgetTime: this.parseTime(new Date(), '{y}-{m}-{d}'), //项目预算时间
|
|
|
capitalSource: '', //资金来源
|
|
capitalSource: '', //资金来源
|
|
|
productSatisfaction: '', //产品方案满足情况
|
|
productSatisfaction: '', //产品方案满足情况
|
|
|
purchasingWay: '', //采购方式id
|
|
purchasingWay: '', //采购方式id
|
|
|
purchasingWayVal: '', //采购方式
|
|
purchasingWayVal: '', //采购方式
|
|
|
- purchasingTime: this.parseTime(new Date(), '{y}-{m}-{d} {h}:{i}'), //采购时间
|
|
|
|
|
|
|
+ purchasingTime: this.parseTime(new Date(), '{y}-{m}-{d}'), //采购时间
|
|
|
makerId: '', //决策人
|
|
makerId: '', //决策人
|
|
|
makerName: '', //决策人
|
|
makerName: '', //决策人
|
|
|
makerDept: '', //决策部门
|
|
makerDept: '', //决策部门
|
|
|
historicalTransactionInfo: '', //输入经销商与客户历史成交信息
|
|
historicalTransactionInfo: '', //输入经销商与客户历史成交信息
|
|
|
dealerSalesName: '', //经销商销售人员
|
|
dealerSalesName: '', //经销商销售人员
|
|
|
accendant: '', //维护部门及人员
|
|
accendant: '', //维护部门及人员
|
|
|
- isAdoptDashoo: '', //是否是大项目选择
|
|
|
|
|
- remark: '', //备注
|
|
|
|
|
|
|
+ isAdoptDashoo: '', //是否采纳大数技术参数
|
|
|
|
|
+ remark: '', //转化原因
|
|
|
|
|
+ projConversionReason: '', //升级原因
|
|
|
id: 0, //项目id
|
|
id: 0, //项目id
|
|
|
|
|
+ file: '',
|
|
|
|
|
+ tempFilePaths: '',
|
|
|
},
|
|
},
|
|
|
showModal: false,
|
|
showModal: false,
|
|
|
projectDetails: {},
|
|
projectDetails: {},
|
|
@@ -395,16 +420,34 @@
|
|
|
message: '请输入项目预算',
|
|
message: '请输入项目预算',
|
|
|
trigger: ['blur'],
|
|
trigger: ['blur'],
|
|
|
},
|
|
},
|
|
|
- distributorName: {
|
|
|
|
|
|
|
+ purchasingWayVal: {
|
|
|
|
|
+ type: 'string',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入采购方式',
|
|
|
|
|
+ trigger: ['blur'],
|
|
|
|
|
+ },
|
|
|
|
|
+ technicalSupportTime: {
|
|
|
|
|
+ type: 'string',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入采购时间',
|
|
|
|
|
+ trigger: ['blur'],
|
|
|
|
|
+ },
|
|
|
|
|
+ isAdoptDashoo: {
|
|
|
type: 'string',
|
|
type: 'string',
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请选择经销商',
|
|
|
|
|
|
|
+ message: '请选择是否采纳大数技术参数',
|
|
|
trigger: ['blur'],
|
|
trigger: ['blur'],
|
|
|
},
|
|
},
|
|
|
|
|
+ file: {
|
|
|
|
|
+ type: 'object',
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请上传文件',
|
|
|
|
|
+ trigger: ['change'],
|
|
|
|
|
+ },
|
|
|
remark: {
|
|
remark: {
|
|
|
type: 'string',
|
|
type: 'string',
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入备注内容',
|
|
|
|
|
|
|
+ message: '请输入转化',
|
|
|
trigger: ['blur'],
|
|
trigger: ['blur'],
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -419,7 +462,7 @@
|
|
|
console.log(option.id) //打印出上个页面传递的参数。
|
|
console.log(option.id) //打印出上个页面传递的参数。
|
|
|
this.addForm.id = parseInt(option.id)
|
|
this.addForm.id = parseInt(option.id)
|
|
|
},
|
|
},
|
|
|
- onShow() {
|
|
|
|
|
|
|
+ mounted() {
|
|
|
this.getDetails()
|
|
this.getDetails()
|
|
|
this.getOptions()
|
|
this.getOptions()
|
|
|
},
|
|
},
|
|
@@ -440,8 +483,9 @@
|
|
|
this.addForm.nboType = ''
|
|
this.addForm.nboType = ''
|
|
|
this.addForm.technicalSupportName = ''
|
|
this.addForm.technicalSupportName = ''
|
|
|
this.addForm.technicalSupportContent = ''
|
|
this.addForm.technicalSupportContent = ''
|
|
|
- this.addForm.technicalSupportTime = this.parseTime(new Date(), '{y}-{m}-{d} {h}:{i}')
|
|
|
|
|
- this.addForm.nboBudgetTime = this.parseTime(new Date(), '{y}-{m}-{d} {h}:{i}')
|
|
|
|
|
|
|
+ this.addForm.technicalSupportTime = this.parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
|
+ this.addForm.nboBudgetTime = this.parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
|
+ this.addForm.projConversionReason = ''
|
|
|
this.addForm.remark = ''
|
|
this.addForm.remark = ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -506,7 +550,57 @@
|
|
|
this.addForm.purchasingTime = timeValue
|
|
this.addForm.purchasingTime = timeValue
|
|
|
console.log(timeValue)
|
|
console.log(timeValue)
|
|
|
},
|
|
},
|
|
|
- handleDowngrade() {
|
|
|
|
|
|
|
+ // 选择是否采用大数参数
|
|
|
|
|
+ chooseRadio(e) {
|
|
|
|
|
+ console.log(e)
|
|
|
|
|
+ if (e == '20') {
|
|
|
|
|
+ this.addForm.file = ''
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ // // 选择上传触发函数
|
|
|
|
|
+ chooseFile(e) {
|
|
|
|
|
+ this.addForm.file = e.tempFiles[0].file
|
|
|
|
|
+ this.addForm.tempFilePaths = e.tempFilePaths[0]
|
|
|
|
|
+ },
|
|
|
|
|
+ // 上传函数
|
|
|
|
|
+ async upgradeA(data) {
|
|
|
|
|
+ const basePath = process.uniEnv.VUE_APP_MicroSrvProxy_API + process.uniEnv.VUE_APP_ParentPath
|
|
|
|
|
+ uni.uploadFile({
|
|
|
|
|
+ url: basePath,
|
|
|
|
|
+ filePath: data.tempFilePaths,
|
|
|
|
|
+ name: 'file',
|
|
|
|
|
+ formData: data,
|
|
|
|
|
+ header: {
|
|
|
|
|
+ Tenant: process.uniEnv.VUE_APP_TENANT,
|
|
|
|
|
+ Authorization: 'Bearer ' + uni.getStorageSync('opms_token') || '',
|
|
|
|
|
+ 'X-RPCX-SerializeType': '1',
|
|
|
|
|
+ 'X-RPCX-ServicePath': 'BusinessHandler',
|
|
|
|
|
+ 'X-RPCX-ServiceMethod': 'BusinessUpgradeA',
|
|
|
|
|
+ SrvEnv: 'dev',
|
|
|
|
|
+ },
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ console.log('success', res)
|
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '提交成功',
|
|
|
|
|
+ complete: () => {
|
|
|
|
|
+ this.goBack()
|
|
|
|
|
+ },
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ fail: (err) => {
|
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '提交失败',
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log('error', err)
|
|
|
|
|
+ },
|
|
|
|
|
+ complete: () => {
|
|
|
|
|
+ this.showModal = false
|
|
|
|
|
+ },
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ handleUpgrade() {
|
|
|
this.$refs.addForm
|
|
this.$refs.addForm
|
|
|
.validate()
|
|
.validate()
|
|
|
.then(async () => {
|
|
.then(async () => {
|
|
@@ -522,20 +616,24 @@
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- async handleDownApi() {
|
|
|
|
|
|
|
+ async handleUpgradeApi() {
|
|
|
let params = this.addForm
|
|
let params = this.addForm
|
|
|
params.nboBudget = Number(params.nboBudget)
|
|
params.nboBudget = Number(params.nboBudget)
|
|
|
- const [err, res] = await to(projectApi.upgrade(params))
|
|
|
|
|
- this.showModal = false
|
|
|
|
|
- if (err) return
|
|
|
|
|
- if (res && res.code == 200) {
|
|
|
|
|
- this.$refs.uToast.show({
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- message: '提交成功',
|
|
|
|
|
- complete: () => {
|
|
|
|
|
- this.goBack()
|
|
|
|
|
- },
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (this.addForm.nboType === '10' && this.addForm.isAdoptDashoo == '10') {
|
|
|
|
|
+ this.upgradeA(params)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ const [err, res] = await to(projectApi.upgrade(params))
|
|
|
|
|
+ this.showModal = false
|
|
|
|
|
+ if (err) return
|
|
|
|
|
+ if (res && res.code == 200) {
|
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '提交成功',
|
|
|
|
|
+ complete: () => {
|
|
|
|
|
+ this.goBack()
|
|
|
|
|
+ },
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
closeUser(user) {
|
|
closeUser(user) {
|
|
@@ -605,7 +703,7 @@
|
|
|
.label-tag {
|
|
.label-tag {
|
|
|
width: 15rpx;
|
|
width: 15rpx;
|
|
|
height: 15rpx;
|
|
height: 15rpx;
|
|
|
- background: #ff4d4f;
|
|
|
|
|
|
|
+ background: #ff4d4f;
|
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
|
margin-right: 10rpx;
|
|
margin-right: 10rpx;
|
|
|
}
|
|
}
|