|
@@ -6,46 +6,46 @@
|
|
|
<u-subsection :list="list" :current="current" @change="sectionChange"></u-subsection>
|
|
<u-subsection :list="list" :current="current" @change="sectionChange"></u-subsection>
|
|
|
<u-cell-group v-show="current == 0">
|
|
<u-cell-group v-show="current == 0">
|
|
|
<!-- 售后对象 -->
|
|
<!-- 售后对象 -->
|
|
|
- <u-cell title="需求编码" arrow-direction="down">
|
|
|
|
|
- <view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
|
|
|
|
|
+ <u-cell title="需求编码" arrow-direction="down" >
|
|
|
|
|
+ <view slot="value" style="display: flex;align-items: center;width: 100%;" >
|
|
|
<u--input disabled style="flex:1" border="surround" v-model="form.code">
|
|
<u--input disabled style="flex:1" border="surround" v-model="form.code">
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</view>
|
|
</view>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="关联类型" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="关联类型" arrow-direction="down" class="required-mark-new">
|
|
|
<uni-data-picker :readonly="!isDisable" v-model="form.associationType" slot="value" placeholder="请选择"
|
|
<uni-data-picker :readonly="!isDisable" v-model="form.associationType" slot="value" placeholder="请选择"
|
|
|
:localdata="associationTypeList" @change="associationTypeOnchange">
|
|
:localdata="associationTypeList" @change="associationTypeOnchange">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="需求名称" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="需求名称" arrow-direction="down" class="required-mark-new">
|
|
|
<view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
<view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
|
<u--input style="flex:1" :disabled="!isDisable" placeholder="请输入" border="surround"
|
|
<u--input style="flex:1" :disabled="!isDisable" placeholder="请输入" border="surround"
|
|
|
v-model="form.name">
|
|
v-model="form.name">
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</view>
|
|
</view>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="客户名称" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="客户名称" arrow-direction="down" class="required-mark-new">
|
|
|
<view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
<view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请选择" border="surround"
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请选择" border="surround"
|
|
|
@click.native="selectContactShow" v-model="form.contactName">
|
|
@click.native="selectContactShow" v-model="form.contactName">
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</view>
|
|
</view>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell v-if="form.associationType" :title="orderCodeName" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell v-if="form.associationType" :title="orderCodeName" arrow-direction="down" class="required-mark-new">
|
|
|
<view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
<view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请选择" border="surround"
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请选择" border="surround"
|
|
|
@click.native="invoiceDialogOpen" v-model="form.orderCode">
|
|
@click.native="invoiceDialogOpen" v-model="form.orderCode">
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</view>
|
|
</view>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="报修地址" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="报修地址" arrow-direction="down" class="required-mark-new">
|
|
|
<view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
<view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请输入" border="surround"
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请输入" border="surround"
|
|
|
v-model="form.contactAddress">
|
|
v-model="form.contactAddress">
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</view>
|
|
</view>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="故障等级" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="故障等级" arrow-direction="down" class="required-mark-new">
|
|
|
<uni-data-picker :readonly="!isDisable" v-model="form.faultLevel" slot="value" placeholder="请选择"
|
|
<uni-data-picker :readonly="!isDisable" v-model="form.faultLevel" slot="value" placeholder="请选择"
|
|
|
:localdata="fault_level" @change="sourceCodeOnchange">
|
|
:localdata="fault_level" @change="sourceCodeOnchange">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
@@ -54,12 +54,12 @@
|
|
|
<uni-datetime-picker :disabled="!isDisable" type="date" slot="value" v-model="form.expectedTime">
|
|
<uni-datetime-picker :disabled="!isDisable" type="date" slot="value" v-model="form.expectedTime">
|
|
|
</uni-datetime-picker>
|
|
</uni-datetime-picker>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="售后类型" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="售后类型" arrow-direction="down" class="required-mark-new">
|
|
|
<uni-data-picker :readonly="!isDisable" v-model="form.afterSalesType" slot="value" placeholder="请选择"
|
|
<uni-data-picker :readonly="!isDisable" v-model="form.afterSalesType" slot="value" placeholder="请选择"
|
|
|
:localdata="after_sales_type">
|
|
:localdata="after_sales_type">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="是否收费" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="是否收费" arrow-direction="down" class="required-mark-new">
|
|
|
<uni-data-picker v-if="isDisable" v-model="form.isFee" slot="value" placeholder="请选择"
|
|
<uni-data-picker v-if="isDisable" v-model="form.isFee" slot="value" placeholder="请选择"
|
|
|
:localdata="chargeList">
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
@@ -69,7 +69,7 @@
|
|
|
</u--input>
|
|
</u--input>
|
|
|
|
|
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="是否带配件" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="是否带配件" arrow-direction="down" class="required-mark-new">
|
|
|
<uni-data-picker v-if="isDisable" v-model="form.isWithAccessories" slot="value" placeholder="请选择"
|
|
<uni-data-picker v-if="isDisable" v-model="form.isWithAccessories" slot="value" placeholder="请选择"
|
|
|
:localdata="chargeList">
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
@@ -78,7 +78,7 @@
|
|
|
|
|
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="是否派车" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="是否派车" arrow-direction="down" class="required-mark-new">
|
|
|
<uni-data-picker v-if="isDisable" v-model="form.isPieCar" slot="value" placeholder="请选择"
|
|
<uni-data-picker v-if="isDisable" v-model="form.isPieCar" slot="value" placeholder="请选择"
|
|
|
:localdata="chargeList">
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
@@ -96,7 +96,7 @@
|
|
|
|
|
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="是否外包" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="是否外包" arrow-direction="down" class="required-mark-new">
|
|
|
<uni-data-picker v-if="isDisable" v-model="form.isOutsource" slot="value" placeholder="请选择"
|
|
<uni-data-picker v-if="isDisable" v-model="form.isOutsource" slot="value" placeholder="请选择"
|
|
|
:localdata="chargeList">
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
@@ -105,7 +105,7 @@
|
|
|
|
|
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="是否生成采购订单" arrow-direction="down">
|
|
|
|
|
|
|
+ <u-cell title="是否生成采购订单" arrow-direction="down" class="required-mark-new">
|
|
|
<uni-data-picker v-if="isDisable" v-model="form.isCreatePurchaseOrder" slot="value" placeholder="请选择"
|
|
<uni-data-picker v-if="isDisable" v-model="form.isCreatePurchaseOrder" slot="value" placeholder="请选择"
|
|
|
:localdata="chargeList">
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
@@ -114,8 +114,8 @@
|
|
|
|
|
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="涉及事业部门" arrow-direction="down">
|
|
|
|
|
- <u--input slot="value" :disabled="!isDisable" placeholder="请选择" border="surround"
|
|
|
|
|
|
|
+ <u-cell title="涉及事业部门" arrow-direction="down" class="required-mark-new">
|
|
|
|
|
+ <u--input slot="value" :disabled="!isDisable" readonly placeholder="请选择" border="surround"
|
|
|
v-model="form.involveDeptName" @click.native="salesDeptShow"></u--input>
|
|
v-model="form.involveDeptName" @click.native="salesDeptShow"></u--input>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
<u-cell title="备注说明" arrow-direction="down">
|
|
<u-cell title="备注说明" arrow-direction="down">
|
|
@@ -494,6 +494,14 @@
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!data.associationType) {
|
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
|
+ type: "warning",
|
|
|
|
|
+ message: "请选择关联类型",
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (!data.orderCode && this.form.associationType !== '3') {
|
|
if (!data.orderCode && this.form.associationType !== '3') {
|
|
|
const message = this.form.associationType === "1" ? "请选择发货单" : "请选择销售订单"
|
|
const message = this.form.associationType === "1" ? "请选择发货单" : "请选择销售订单"
|
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|