|
@@ -21,6 +21,7 @@ import Upload from '@/components/Upload/index.vue'
|
|
|
import type { FormInstance, FormRules } from 'element-plus'
|
|
|
import ContractUser from '@/views/storehouse/outStock/receiveUser.vue'
|
|
|
import MyPercentageFormStorage from '@/views/storehouse/inventory/MyPercentageFormStorage.vue'
|
|
|
+import verifyxiang from '@/views/storehouse/sales/verifyxiang.vue'
|
|
|
|
|
|
const isNew = ref(true)
|
|
|
const isProduct = ref(false)
|
|
@@ -150,6 +151,7 @@ const AddContract = (formEl: FormInstance | undefined) => {
|
|
|
}
|
|
|
|
|
|
const drawerProductRef = ref<InstanceType<typeof MyPercentageFormStorage> | null>(null)
|
|
|
+const verifyxiangRef = ref<InstanceType<typeof verifyxiang> | null>(null)
|
|
|
/**
|
|
|
* 添加产品
|
|
|
*/
|
|
@@ -199,8 +201,12 @@ const ProductSelectionAllChange = (selection: any[]) => (tableData.value = selec
|
|
|
/**
|
|
|
* 生成合同编号
|
|
|
*/
|
|
|
-const getContractNumber = async () => {
|
|
|
- contractNumberLoading.value = true
|
|
|
+const getContractNumber = async (id:any) => {
|
|
|
+ console.log('查看',id)
|
|
|
+ if(!id){ElMessage.error('合同编号不能为空哦');return}
|
|
|
+ verifyxiangRef.value?.openDrawer()
|
|
|
+ window.sessionStorage.setItem('globaId', id);
|
|
|
+ verifyxiangRef.value?.getStorehouseContractGet()
|
|
|
}
|
|
|
/**
|
|
|
* 合同负责人
|
|
@@ -271,7 +277,7 @@ defineExpose({
|
|
|
:remote-method="remoteMethod" :loading="loading" @click="click2" clearable style="width: 200px;">
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
- <el-button :loading="contractNumberLoading" type="primary" @click="getContractNumber" style="margin-left: 10px;">查看合同详情</el-button>
|
|
|
+ <el-button :loading="contractNumberLoading" type="primary" @click="getContractNumber(form.T_number)" style="margin-left: 10px;">查看合同详情</el-button>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="提成类型:" :label-width="formLabelWidth" prop="T_type">
|
|
@@ -331,6 +337,7 @@ defineExpose({
|
|
|
<ContractUser ref="receiveUserdialog" @onUserInfo="getReceiveInfo" title="合同负责人" />
|
|
|
<MyPercentageFormStorage v-if="isProduct" ref="drawerProductRef" :selectProductData="selectProductData"
|
|
|
@ontableData="ProductselectionChange" @ontableDataAll="ProductSelectionAllChange"></MyPercentageFormStorage>
|
|
|
+ <verifyxiang ref="verifyxiangRef"></verifyxiang>
|
|
|
</div>
|
|
|
</template>
|
|
|
|