|
|
@@ -12,40 +12,40 @@
|
|
|
</u--input>
|
|
|
</view>
|
|
|
</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="请选择"
|
|
|
:localdata="associationTypeList" @change="associationTypeOnchange">
|
|
|
</uni-data-picker>
|
|
|
</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%;">
|
|
|
<u--input style="flex:1" :disabled="!isDisable" placeholder="请输入" border="surround"
|
|
|
v-model="form.name">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
</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%;">
|
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请选择" border="surround"
|
|
|
@click.native="selectContactShow" v-model="form.contactName">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
</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%;">
|
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请选择" border="surround"
|
|
|
@click.native="invoiceDialogOpen" v-model="form.orderCode">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
</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%;">
|
|
|
<u--input :disabled="!isDisable" style="flex:1" placeholder="请输入" border="surround"
|
|
|
v-model="form.contactAddress">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
</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="请选择"
|
|
|
:localdata="fault_level" @change="sourceCodeOnchange">
|
|
|
</uni-data-picker>
|
|
|
@@ -54,12 +54,12 @@
|
|
|
<uni-datetime-picker :disabled="!isDisable" type="date" slot="value" v-model="form.expectedTime">
|
|
|
</uni-datetime-picker>
|
|
|
</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="请选择"
|
|
|
:localdata="after_sales_type">
|
|
|
</uni-data-picker>
|
|
|
</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="请选择"
|
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
|
@@ -69,7 +69,7 @@
|
|
|
</u--input>
|
|
|
|
|
|
</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="请选择"
|
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
|
@@ -78,7 +78,7 @@
|
|
|
|
|
|
</u--input>
|
|
|
</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="请选择"
|
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
|
@@ -92,11 +92,11 @@
|
|
|
:localdata="pie_car_type">
|
|
|
</uni-data-picker>
|
|
|
<u--input v-else slot="value" style="flex:1" placeholder="请输入" disabled border="surround"
|
|
|
- :value="form.pieCarType==1?'是':'否'">
|
|
|
+ :value="getTetx(form.pieCarType)">
|
|
|
|
|
|
</u--input>
|
|
|
</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="请选择"
|
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
|
@@ -105,7 +105,7 @@
|
|
|
|
|
|
</u--input>
|
|
|
</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="请选择"
|
|
|
:localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
|
@@ -114,9 +114,9 @@
|
|
|
|
|
|
</u--input>
|
|
|
</u-cell>
|
|
|
- <u-cell title="涉及事业部门" arrow-direction="down">
|
|
|
- <u--input slot="value" :disabled="!isDisable" placeholder="请选择" border="surround"
|
|
|
- v-model="form.involveDeptName" @click.native="salesDeptShow"></u--input>
|
|
|
+ <u-cell title="涉及事业部门" arrow-direction="down" class="required-mark-new" @click.native="salesDeptShow">
|
|
|
+ <u--input slot="value" :disabled="!isDisable" style="pointer-events: none;" placeholder="请选择"
|
|
|
+ border="surround" v-model="form.involveDeptName"></u--input>
|
|
|
</u-cell>
|
|
|
<u-cell title="备注说明" arrow-direction="down">
|
|
|
<u--textarea border="surround" :disabled="!isDisable" placeholder=" " slot="value" v-model="form.remark"
|
|
|
@@ -305,6 +305,7 @@
|
|
|
el.categoryCode = el.code;
|
|
|
el.categoryName = el.name;
|
|
|
el.categoryModel = el.modelType;
|
|
|
+ el.productCategoryName = el.categoryLevelPath
|
|
|
return el;
|
|
|
});
|
|
|
let params = {
|
|
|
@@ -335,6 +336,9 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ getTetx(val) {
|
|
|
+ return this.pie_car_type.find(data => data.value == val)?.text
|
|
|
+ },
|
|
|
//选择部门
|
|
|
salesDeptShow() {
|
|
|
if (!this.isDisable) {
|
|
|
@@ -494,6 +498,14 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (!data.associationType) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择关联类型",
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (!data.orderCode && this.form.associationType !== '3') {
|
|
|
const message = this.form.associationType === "1" ? "请选择发货单" : "请选择销售订单"
|
|
|
this.$refs.uToast.show({
|