|
|
@@ -93,7 +93,7 @@
|
|
|
</uni-data-picker>
|
|
|
<u--input v-else slot="value" style="flex:1" placeholder="请输入" disabled border="surround"
|
|
|
:value="form.pieCarType==1?'是':'否'">
|
|
|
-
|
|
|
+
|
|
|
</u--input>
|
|
|
</u-cell>
|
|
|
<u-cell title="是否外包" arrow-direction="down">
|
|
|
@@ -102,27 +102,24 @@
|
|
|
</uni-data-picker>
|
|
|
<u--input v-else slot="value" style="flex:1" placeholder="请输入" disabled border="surround"
|
|
|
:value="form.isOutsource==1?'是':'否'">
|
|
|
-
|
|
|
+
|
|
|
</u--input>
|
|
|
</u-cell>
|
|
|
<u-cell title="是否生成采购订单" arrow-direction="down">
|
|
|
- <uni-data-picker v-if="isDisable" v-model="form.isCreatePurchaseOrder" slot="value"
|
|
|
- placeholder="请选择" :localdata="chargeList">
|
|
|
+ <uni-data-picker v-if="isDisable" v-model="form.isCreatePurchaseOrder" slot="value" placeholder="请选择"
|
|
|
+ :localdata="chargeList">
|
|
|
</uni-data-picker>
|
|
|
<u--input v-else slot="value" style="flex:1" placeholder="请输入" disabled border="surround"
|
|
|
:value="form.isCreatePurchaseOrder==1?'是':'否'">
|
|
|
-
|
|
|
+
|
|
|
</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--input slot="value" :disabled="!isDisable" placeholder="请选择" border="surround"
|
|
|
+ v-model="form.involveDeptName" @click.native="salesDeptShow"></u--input>
|
|
|
</u-cell>
|
|
|
- <u-cell title="报修人" arrow-direction="down">
|
|
|
- <view slot="value" style="display: flex;align-items: center;width: 100%;">
|
|
|
- <u--input style="flex:1" placeholder="请输入" disabled border="surround" v-model="createUserName">
|
|
|
- </u--input>
|
|
|
- </view>
|
|
|
+ <u-cell title="备注说明" arrow-direction="down">
|
|
|
+ <u--textarea border="surround" :disabled="!isDisable" placeholder=" " slot="value" v-model="form.remark" autoHeight ></u--textarea>
|
|
|
</u-cell>
|
|
|
</u-cell-group>
|
|
|
<AfterSales ref="salesRef" :type="type" v-show="current == 1" :afterSalesType="form.afterSalesType"
|
|
|
@@ -132,6 +129,9 @@
|
|
|
<view class="footerButton" v-if="isDisable">
|
|
|
<u-button type="default" text="返回" @click="back"></u-button>
|
|
|
<u-button type="primary" @click="save" text="保存"></u-button>
|
|
|
+ </view>
|
|
|
+ <view style="height:84rpx;width:100%">
|
|
|
+
|
|
|
</view>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
<ba-tree-picker ref="treePicker" :multiple="false" @select-change="confirm" :localdata="listData" valueKey="id"
|
|
|
@@ -330,6 +330,9 @@
|
|
|
methods: {
|
|
|
//选择部门
|
|
|
salesDeptShow() {
|
|
|
+ if (!this.isDisable) {
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$refs.treePicker._show()
|
|
|
},
|
|
|
// 查询详情
|
|
|
@@ -368,6 +371,9 @@
|
|
|
this.current = index;
|
|
|
},
|
|
|
selectContactShow() {
|
|
|
+ if (!this.isDisable) {
|
|
|
+ return
|
|
|
+ }
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/saleManage/components/selectContact?isAll=2&type=需求`
|
|
|
})
|
|
|
@@ -416,6 +422,9 @@
|
|
|
this.form.orderCode = ''
|
|
|
},
|
|
|
invoiceDialogOpen() {
|
|
|
+ if (!this.isDisable) {
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.form.contactId && this.form.associationType !== '3') {
|
|
|
this.$refs.uToast.show({
|
|
|
type: "warning",
|
|
|
@@ -506,6 +515,39 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ let isMessage = [];
|
|
|
+ [{
|
|
|
+ name: '请选择是否收费',
|
|
|
+ key: 'isFee'
|
|
|
+ }, {
|
|
|
+ name: '请选择是否带配件',
|
|
|
+ key: 'isWithAccessories'
|
|
|
+ }, {
|
|
|
+ name: '请选择是否派车',
|
|
|
+ key: 'isPieCar'
|
|
|
+ }, {
|
|
|
+ name: '请选择是否外包',
|
|
|
+ key: 'isOutsource'
|
|
|
+ }, {
|
|
|
+ name: '请选择是否生成采购订单',
|
|
|
+ key: 'isCreatePurchaseOrder'
|
|
|
+ }, {
|
|
|
+ name: '请选择涉及事业部门',
|
|
|
+ key: 'involveDeptName'
|
|
|
+ }].forEach(item => {
|
|
|
+ if (data[item.key] != 1 && data[item.key] !== 0 && !isMessage.length) {
|
|
|
+ console.log(item, 'item')
|
|
|
+ isMessage.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (isMessage.length) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: "warning",
|
|
|
+ message: isMessage[0].name,
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// 联系人数据
|
|
|
let contactInfoVOS = this.$refs.contactRef.getTabData();
|
|
|
@@ -559,6 +601,10 @@
|
|
|
margin-right: 16rpx;
|
|
|
}
|
|
|
|
|
|
+ /deep/.uni-textarea-textarea {
|
|
|
+ color: red;
|
|
|
+ }
|
|
|
+
|
|
|
.footerButton {
|
|
|
width: 100%;
|
|
|
height: 84rpx;
|